From ff12df487fbb367074e69c4168172f9fc23dc29f Mon Sep 17 00:00:00 2001 From: Brian Henry Date: Thu, 15 May 2025 21:18:55 -0700 Subject: [PATCH] Change `final class` to `class` --- src/voku/SimplePhpParser/Model/PHPTrait.php | 2 +- src/voku/SimplePhpParser/Parsers/Helper/DocFactoryProvider.php | 2 +- src/voku/SimplePhpParser/Parsers/Helper/ParserErrorHandler.php | 2 +- src/voku/SimplePhpParser/Parsers/Helper/Utils.php | 2 +- src/voku/SimplePhpParser/Parsers/PhpCodeParser.php | 2 +- src/voku/SimplePhpParser/Parsers/Visitors/ASTVisitor.php | 2 +- src/voku/SimplePhpParser/Parsers/Visitors/ParentConnector.php | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/voku/SimplePhpParser/Model/PHPTrait.php b/src/voku/SimplePhpParser/Model/PHPTrait.php index 7335437..957b6c9 100644 --- a/src/voku/SimplePhpParser/Model/PHPTrait.php +++ b/src/voku/SimplePhpParser/Model/PHPTrait.php @@ -9,7 +9,7 @@ use ReflectionClass; use voku\SimplePhpParser\Parsers\Helper\Utils; -final class PHPTrait extends BasePHPClass +class PHPTrait extends BasePHPClass { /** * @phpstan-var class-string diff --git a/src/voku/SimplePhpParser/Parsers/Helper/DocFactoryProvider.php b/src/voku/SimplePhpParser/Parsers/Helper/DocFactoryProvider.php index ce87eb7..ea2756b 100644 --- a/src/voku/SimplePhpParser/Parsers/Helper/DocFactoryProvider.php +++ b/src/voku/SimplePhpParser/Parsers/Helper/DocFactoryProvider.php @@ -6,7 +6,7 @@ use phpDocumentor\Reflection\DocBlockFactory; -final class DocFactoryProvider +class DocFactoryProvider { private static ?DocBlockFactory $docFactory = null; diff --git a/src/voku/SimplePhpParser/Parsers/Helper/ParserErrorHandler.php b/src/voku/SimplePhpParser/Parsers/Helper/ParserErrorHandler.php index d334f14..2c6cfa2 100644 --- a/src/voku/SimplePhpParser/Parsers/Helper/ParserErrorHandler.php +++ b/src/voku/SimplePhpParser/Parsers/Helper/ParserErrorHandler.php @@ -7,7 +7,7 @@ use PhpParser\Error; use PhpParser\ErrorHandler; -final class ParserErrorHandler extends ErrorHandler\Collecting +class ParserErrorHandler extends ErrorHandler\Collecting { /** * Handle an error generated during lexing, parsing or some other operation. diff --git a/src/voku/SimplePhpParser/Parsers/Helper/Utils.php b/src/voku/SimplePhpParser/Parsers/Helper/Utils.php index dcd4cc4..f74c8da 100644 --- a/src/voku/SimplePhpParser/Parsers/Helper/Utils.php +++ b/src/voku/SimplePhpParser/Parsers/Helper/Utils.php @@ -10,7 +10,7 @@ use ReflectionClass; use ReflectionFunction; -final class Utils +class Utils { public const GET_PHP_PARSER_VALUE_FROM_NODE_HELPER = '!!!_SIMPLE_PHP_CODE_PARSER_HELPER_!!!'; diff --git a/src/voku/SimplePhpParser/Parsers/PhpCodeParser.php b/src/voku/SimplePhpParser/Parsers/PhpCodeParser.php index 5645859..bd0c71b 100644 --- a/src/voku/SimplePhpParser/Parsers/PhpCodeParser.php +++ b/src/voku/SimplePhpParser/Parsers/PhpCodeParser.php @@ -23,7 +23,7 @@ use function React\Async\await; use function React\Promise\all; -final class PhpCodeParser +class PhpCodeParser { /** * @internal diff --git a/src/voku/SimplePhpParser/Parsers/Visitors/ASTVisitor.php b/src/voku/SimplePhpParser/Parsers/Visitors/ASTVisitor.php index 571bcfc..5572f39 100644 --- a/src/voku/SimplePhpParser/Parsers/Visitors/ASTVisitor.php +++ b/src/voku/SimplePhpParser/Parsers/Visitors/ASTVisitor.php @@ -21,7 +21,7 @@ use voku\SimplePhpParser\Parsers\Helper\ParserContainer; use voku\SimplePhpParser\Parsers\Helper\Utils; -final class ASTVisitor extends NodeVisitorAbstract +class ASTVisitor extends NodeVisitorAbstract { /** * @var string|null diff --git a/src/voku/SimplePhpParser/Parsers/Visitors/ParentConnector.php b/src/voku/SimplePhpParser/Parsers/Visitors/ParentConnector.php index 6731cc5..24e9941 100644 --- a/src/voku/SimplePhpParser/Parsers/Visitors/ParentConnector.php +++ b/src/voku/SimplePhpParser/Parsers/Visitors/ParentConnector.php @@ -10,7 +10,7 @@ /** * The visitor is required to provide "parent" attribute to nodes */ -final class ParentConnector extends NodeVisitorAbstract +class ParentConnector extends NodeVisitorAbstract { /** * @var Node[]