From d9d1fd27214af2c55612bfb852bc01b10663d1d6 Mon Sep 17 00:00:00 2001 From: Markus Staab Date: Fri, 22 Sep 2023 17:28:02 +0200 Subject: [PATCH] Check fixtures with PHPStan (#5026) * Check fixtures with PHPStan * fix * Update phpstan-for-fixtures.neon * Discard changes to phpstan-for-config.neon * Update code_analysis.yaml * simplify * ignore RenameClassRector * fix * fix * fix * fix * Update phpstan-for-fixtures.neon * Update is_countable.php.inc * fix * fix * fix * Update code_analysis.yaml * Update phpstan-for-fixtures.neon * fix * fix * fix * fix * fix * Update rename_method_and_method_call.php.inc * fix * fix * Update do_not_take_side_effect.php.inc * fix * fix * ignores * fix * fix * fix * Update phpstan-for-fixtures.neon * fix * revert * fix * fix * fix * fix * Update another_comment.php.inc * fix * use Source class * Revert "use Source class" This reverts commit d857343a7e2efbe78089e402a34d75d9028e7c58. * Update configured_rule.php * Update another_comment.php.inc * Update another_comment.php.inc * Update another_comment.php.inc * Update phpstan-for-fixtures.neon * Discard changes to rules-tests/Removing/Rector/ClassMethod/ArgumentRemoverRector/Fixture/fixture2.php.inc * Update phpstan-for-fixtures.neon * fix a few more --- .github/workflows/code_analysis.yaml | 7 ++++ composer.json | 1 + .../Fixture/AssertArrayType.php.inc | 2 +- .../Fixture/AssertChoice.php.inc | 2 +- .../AssertChoiceNonQuoteValues.php.inc | 2 +- .../Fixture/AssertChoiceQuoteValues.php.inc | 2 +- .../AssertChoiceWithCeroOnOptions.php.inc | 2 +- .../AssertChoiceWithManyGroups.php.inc | 2 +- .../Fixture/AssertChoiceWithMessage.php.inc | 2 +- .../Fixture/AssertQuoteChoice.php.inc | 2 +- .../Fixture/AssertStringQuotedType.php.inc | 2 +- .../Fixture/AssertStringType.php.inc | 2 +- .../Fixture/AssertType.php.inc | 2 +- .../Fixture/AssertTypeWithMessage.php.inc | 2 +- .../Fixture/BlameableTag.php.inc | 2 +- .../Fixture/ConstantTable.php.inc | 2 +- .../Fixture/CustomIdGenerator.php.inc | 2 +- .../GeneratedValueWithStrategy.php.inc | 2 +- .../GeneratedValueWithStrategyString.php.inc | 2 +- .../Fixture/RouteName.php.inc | 2 +- ...outeNameWithMethodAndClassConstant.php.inc | 2 +- .../Fixture/RouteSomeClassMethod.php.inc | 2 +- .../Fixture/RouteWithCondition.php.inc | 2 +- .../Fixture/RouteWithHost.php.inc | 2 +- .../Fixture/RouteWithHostWithPath.php.inc | 2 +- .../RouteWithPrefixAndEmptyName.php.inc | 2 +- .../Fixture/SensioMethodSingle.php.inc | 2 +- .../SensioTemplateSimilarToConstant.php.inc | 2 +- .../Fixture/SomeClassMethod.php.inc | 2 +- .../Fixture/SomeEntity.php.inc | 2 +- .../Fixture/SomeEntityBrackets.php.inc | 2 +- .../route_with_extra_methods.php.inc | 2 +- .../FormattingDoctrineEntity.php.inc | 2 +- .../FixtureNested/JoinTable.php.inc | 2 +- .../JoinTableWithJoinColumns.php.inc | 2 ++ .../Fixture/another_comment.php.inc | 7 ++-- phpstan-for-fixtures.neon | 33 +++++++++++++++++++ .../Fixture/named_argument.php.inc | 4 +-- .../Fixture/change-in-non-final.php.inc | 4 +-- .../private-constant-with-static.php.inc | 4 +-- .../replace-in-private-methods.php.inc | 4 +-- .../Fixture/skip-already-self.php.inc | 2 +- .../skip-constant-from-other-class.php.inc | 2 +- .../Fixture/skip-other-visibility.php.inc | 2 +- .../Fixture/skip_variable_variable.php.inc | 1 + .../Fixture/skip_variable_variable2.php.inc | 1 + .../Fixture/skip_variable_variable3.php.inc | 2 ++ .../Fixture/skip_variable_variable4.php.inc | 2 ++ ...eat_variadic_parameter_as_optional.php.inc | 2 ++ .../FixtureForPhp72/skip_self_ctor.php.inc | 2 +- .../FixtureForPhp72/skip_static_ctor.php.inc | 2 +- .../Fixture/skip_typed_closure.php.inc | 2 ++ .../{Source => }/SomeConstantFloatType.php | 0 .../{Source => }/SomeConstantIntegerType.php | 0 .../Source/{Source => }/SomeConstantType.php | 0 .../skip_typed_properties.php.inc | 2 +- .../Source/SomeParentMethod.php | 2 +- .../Fixture/nullable_expr_type.php.inc | 4 +-- .../promoted_property_rename_fetch.php.inc | 4 +-- .../Fixture/rename_param_doc.php.inc | 4 +-- ...kip_change_promoted_duplicate_type.php.inc | 2 +- .../skip_phpstan_type_construct.php.inc | 2 +- .../Fixture/union_types_to_expr.php.inc | 4 +-- .../Fixture/delegating.php.inc | 4 +++ .../Fixture/delegating_2.php.inc | 4 +++ .../Fixture/fixture.php.inc | 4 +++ .../Fixture/fixture5.php.inc | 4 +++ .../Fixture/just_for.php.inc | 4 +++ .../Fixture/skip_trait_naming.php.inc | 2 ++ .../Fixture/do_not_take_side_effect.php.inc | 4 +-- .../FixtureForPhp73/is_countable.php.inc | 4 +-- .../Fixture/keep_docblock_on_return.php.inc | 4 +++ .../Fixture/keep_docblock_on_return2.php.inc | 2 ++ .../Fixture/keep_docblock_on_return3.php.inc | 4 +++ .../Fixture/keep_docblock_on_return4.php.inc | 4 +++ ..._explicit_array_and_explicit_array.php.inc | 4 +-- ...latten_explicit_array_and_variable.php.inc | 4 +-- ...latten_variable_and_explicit_array.php.inc | 4 +-- ..._explicit_array_and_explicit_array.php.inc | 4 +-- ...latten_explicit_array_and_variable.php.inc | 8 ++--- ...latten_variable_and_explicit_array.php.inc | 4 +-- .../Fixture/skip_variadic_parameter.php.inc | 2 ++ .../Source/ValidatedElement.php | 2 +- .../skip_not_registered_func_call.php.inc | 2 +- .../Fixture/skip_static_property.php.inc | 2 ++ .../rename_method_and_method_call.php.inc | 4 +-- .../config/configured_rule.php | 1 + .../Fixture/fixture.php.inc | 8 +++-- .../Fixture/fixture2.php.inc | 4 +++ .../Fixture/param_array_offset.php.inc | 2 ++ .../Fixture/exception.php.inc | 6 ++++ .../Fixture/never_method.php.inc | 2 ++ .../Fixture/skip_abstract_method.php.inc | 2 ++ .../Fixture/extends_exception.php.inc | 4 ++- .../Fixture/some_self.php.inc | 4 +-- .../Fixture/multiple_declare2.php copy.inc | 6 +++- .../no_namespace_with_plus_operation.php.inc | 4 +++ .../Fixture/fixture.php.inc | 4 +++ .../Fixture/fixture2.php.inc | 4 +++ .../Fixture/fixture.php.inc | 4 +++ .../Fixture/fixture_abstract.php.inc | 4 +++ .../Fixture/fixture_final.php.inc | 4 +++ 102 files changed, 231 insertions(+), 90 deletions(-) create mode 100644 phpstan-for-fixtures.neon rename rules-tests/DeadCode/Rector/Property/RemoveUselessVarTagRector/Source/{Source => }/SomeConstantFloatType.php (100%) rename rules-tests/DeadCode/Rector/Property/RemoveUselessVarTagRector/Source/{Source => }/SomeConstantIntegerType.php (100%) rename rules-tests/DeadCode/Rector/Property/RemoveUselessVarTagRector/Source/{Source => }/SomeConstantType.php (100%) diff --git a/.github/workflows/code_analysis.yaml b/.github/workflows/code_analysis.yaml index df820fcdf25..16d73eedfd4 100644 --- a/.github/workflows/code_analysis.yaml +++ b/.github/workflows/code_analysis.yaml @@ -37,6 +37,13 @@ jobs: name: 'PHPStan for config' run: composer phpstan-config + - + name: 'PHPStan for fixtures' + run: | + # disable auto discovering of rules + composer remove phpstan/extension-installer --dev + composer phpstan-fixtures + - name: 'Commented Code' run: vendor/bin/easy-ci check-commented-code src packages rules tests packages-tests rules-tests --line-limit 5 --ansi diff --git a/composer.json b/composer.json index d353bc26b63..04ff512e1c3 100644 --- a/composer.json +++ b/composer.json @@ -124,6 +124,7 @@ "fix-cs": "vendor/bin/ecs check --fix --ansi", "phpstan": "vendor/bin/phpstan analyse --ansi --error-format symplify", "phpstan-config": "vendor/bin/phpstan analyse config --ansi --error-format symplify", + "phpstan-fixtures": "vendor/bin/phpstan analyse -c phpstan-for-fixtures.neon --ansi --error-format symplify", "docs": [ "vendor/bin/rule-doc-generator generate rules --output-file build/rector_rules_overview.md --ansi --categorize 3", "mv build/rector_rules_overview.md build/target-repository/docs/rector_rules_overview.md" diff --git a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/AssertArrayType.php.inc b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/AssertArrayType.php.inc index f9201b6bfcc..f5489f4fd86 100644 --- a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/AssertArrayType.php.inc +++ b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/AssertArrayType.php.inc @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\Fixture\AssertType; +namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\Fixture; use Symfony\Component\Validator\Constraints as Assert; diff --git a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/AssertChoice.php.inc b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/AssertChoice.php.inc index f9c3bd67a94..96e1c724969 100644 --- a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/AssertChoice.php.inc +++ b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/AssertChoice.php.inc @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\Fixture\AssertChoice; +namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\Fixture; use Symfony\Component\Validator\Constraints as Assert; diff --git a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/AssertChoiceNonQuoteValues.php.inc b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/AssertChoiceNonQuoteValues.php.inc index 14ca181f109..9e9304ab36f 100644 --- a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/AssertChoiceNonQuoteValues.php.inc +++ b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/AssertChoiceNonQuoteValues.php.inc @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\Fixture\AssertChoice; +namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\Fixture; use Symfony\Component\Validator\Constraints as Assert; diff --git a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/AssertChoiceQuoteValues.php.inc b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/AssertChoiceQuoteValues.php.inc index 2483f9d2b8d..f27358eeb73 100644 --- a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/AssertChoiceQuoteValues.php.inc +++ b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/AssertChoiceQuoteValues.php.inc @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\Fixture\AssertChoice; +namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\Fixture; use Symfony\Component\Validator\Constraints as Assert; diff --git a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/AssertChoiceWithCeroOnOptions.php.inc b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/AssertChoiceWithCeroOnOptions.php.inc index c11119f089f..059053eebe6 100644 --- a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/AssertChoiceWithCeroOnOptions.php.inc +++ b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/AssertChoiceWithCeroOnOptions.php.inc @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\Fixture\AssertChoice; +namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\Fixture; use Symfony\Component\Validator\Constraints as Assert; diff --git a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/AssertChoiceWithManyGroups.php.inc b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/AssertChoiceWithManyGroups.php.inc index 9f339038477..6fc49e93868 100644 --- a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/AssertChoiceWithManyGroups.php.inc +++ b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/AssertChoiceWithManyGroups.php.inc @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\Fixture\AssertChoice; +namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\Fixture; use Symfony\Component\Validator\Constraints as Assert; diff --git a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/AssertChoiceWithMessage.php.inc b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/AssertChoiceWithMessage.php.inc index a3c2009a3ae..b6310e90ad1 100644 --- a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/AssertChoiceWithMessage.php.inc +++ b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/AssertChoiceWithMessage.php.inc @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\Fixture\AssertChoice; +namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\Fixture; use Symfony\Component\Validator\Constraints as Assert; diff --git a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/AssertQuoteChoice.php.inc b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/AssertQuoteChoice.php.inc index 25898760342..21ded2b155f 100644 --- a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/AssertQuoteChoice.php.inc +++ b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/AssertQuoteChoice.php.inc @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\Fixture\AssertChoice; +namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\Fixture; use Symfony\Component\Validator\Constraints as Assert; diff --git a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/AssertStringQuotedType.php.inc b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/AssertStringQuotedType.php.inc index 1d5991cd993..bd00398756a 100644 --- a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/AssertStringQuotedType.php.inc +++ b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/AssertStringQuotedType.php.inc @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\Fixture\AssertType; +namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\Fixture; use Symfony\Component\Validator\Constraints as Assert; diff --git a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/AssertStringType.php.inc b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/AssertStringType.php.inc index 7f5d17c9c4d..c94809b73fd 100644 --- a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/AssertStringType.php.inc +++ b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/AssertStringType.php.inc @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\Fixture\AssertType; +namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\Fixture; use Symfony\Component\Validator\Constraints as Assert; diff --git a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/AssertType.php.inc b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/AssertType.php.inc index eb5b37ebf56..8be443a9d3d 100644 --- a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/AssertType.php.inc +++ b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/AssertType.php.inc @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\Fixture\AssertType; +namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\Fixture; use Doctrine\Common\Collections\Collection; use Symfony\Component\Validator\Constraints as Assert; diff --git a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/AssertTypeWithMessage.php.inc b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/AssertTypeWithMessage.php.inc index 587e6f433aa..e00ac55f604 100644 --- a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/AssertTypeWithMessage.php.inc +++ b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/AssertTypeWithMessage.php.inc @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\Fixture\AssertType; +namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\Fixture; use Symfony\Component\Validator\Constraints as Assert; diff --git a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/BlameableTag.php.inc b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/BlameableTag.php.inc index d25c4a27441..d32234f61f4 100644 --- a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/BlameableTag.php.inc +++ b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/BlameableTag.php.inc @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\Fixture\Blameable; +namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\Fixture; use Gedmo\Mapping\Annotation as Gedmo; diff --git a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/ConstantTable.php.inc b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/ConstantTable.php.inc index 21e8428bcb7..e97420240a6 100644 --- a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/ConstantTable.php.inc +++ b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/ConstantTable.php.inc @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\Fixture\DoctrineTable; +namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\Fixture; use Doctrine\ORM\Mapping as ORM; diff --git a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/CustomIdGenerator.php.inc b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/CustomIdGenerator.php.inc index 5a30242de45..0f786d33413 100644 --- a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/CustomIdGenerator.php.inc +++ b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/CustomIdGenerator.php.inc @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\Fixture\DoctrineCustomIdGenerator; +namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\Fixture; use Doctrine\ORM\Mapping as ORM; diff --git a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/GeneratedValueWithStrategy.php.inc b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/GeneratedValueWithStrategy.php.inc index d58bf15ff52..b72faaeefc9 100644 --- a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/GeneratedValueWithStrategy.php.inc +++ b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/GeneratedValueWithStrategy.php.inc @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\Fixture\DoctrineGeneratedValue; +namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\Fixture; use Doctrine\ORM\Mapping as ORM; diff --git a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/GeneratedValueWithStrategyString.php.inc b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/GeneratedValueWithStrategyString.php.inc index 6a1073b4f73..ab869fb8b23 100644 --- a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/GeneratedValueWithStrategyString.php.inc +++ b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/GeneratedValueWithStrategyString.php.inc @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\Fixture\DoctrineGeneratedValue; +namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\Fixture; use Doctrine\ORM\Mapping as ORM; diff --git a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/RouteName.php.inc b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/RouteName.php.inc index c722a068333..0bd2894ba35 100644 --- a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/RouteName.php.inc +++ b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/RouteName.php.inc @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\Fixture\SymfonyRoute; +namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\Fixture; use Symfony\Component\Routing\Annotation\Route; use Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\Source\TestController; diff --git a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/RouteNameWithMethodAndClassConstant.php.inc b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/RouteNameWithMethodAndClassConstant.php.inc index 82b487c3588..4c7f370f6e7 100644 --- a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/RouteNameWithMethodAndClassConstant.php.inc +++ b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/RouteNameWithMethodAndClassConstant.php.inc @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\Fixture\SymfonyRoute; +namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\Fixture; use Symfony\Component\Routing\Annotation\Route; use Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\Source\MyController; diff --git a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/RouteSomeClassMethod.php.inc b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/RouteSomeClassMethod.php.inc index afd5e3ef9d7..d4ae4e59f5a 100644 --- a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/RouteSomeClassMethod.php.inc +++ b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/RouteSomeClassMethod.php.inc @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\Fixture\SymfonyRoute; +namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\Fixture; use Symfony\Component\Routing\Annotation\Route; diff --git a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/RouteWithCondition.php.inc b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/RouteWithCondition.php.inc index 3699017a2ef..74594f229d7 100644 --- a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/RouteWithCondition.php.inc +++ b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/RouteWithCondition.php.inc @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\Fixture\SymfonyRoute; +namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\Fixture; use Symfony\Component\Routing\Annotation\Route; diff --git a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/RouteWithHost.php.inc b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/RouteWithHost.php.inc index 75ef716a2c9..fb81c9ac5b8 100644 --- a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/RouteWithHost.php.inc +++ b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/RouteWithHost.php.inc @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\Fixture\SymfonyRoute; +namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\Fixture; use Symfony\Component\Routing\Annotation\Route; diff --git a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/RouteWithHostWithPath.php.inc b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/RouteWithHostWithPath.php.inc index 25cfa1853c0..11613a4068e 100644 --- a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/RouteWithHostWithPath.php.inc +++ b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/RouteWithHostWithPath.php.inc @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\Fixture\SymfonyRoute; +namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\Fixture; use Symfony\Component\Routing\Annotation\Route; diff --git a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/RouteWithPrefixAndEmptyName.php.inc b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/RouteWithPrefixAndEmptyName.php.inc index beeac24969b..fad302487ef 100644 --- a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/RouteWithPrefixAndEmptyName.php.inc +++ b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/RouteWithPrefixAndEmptyName.php.inc @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\Fixture\SymfonyRoute; +namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\Fixture; use Symfony\Component\Routing\Annotation\Route; diff --git a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/SensioMethodSingle.php.inc b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/SensioMethodSingle.php.inc index 87805e04947..39341173e52 100644 --- a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/SensioMethodSingle.php.inc +++ b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/SensioMethodSingle.php.inc @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\Fixture\SensioMethod; +namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\Fixture; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; diff --git a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/SensioTemplateSimilarToConstant.php.inc b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/SensioTemplateSimilarToConstant.php.inc index 4b375e7e482..184b7f18f93 100644 --- a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/SensioTemplateSimilarToConstant.php.inc +++ b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/SensioTemplateSimilarToConstant.php.inc @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\Fixture\SensioTemplate; +namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\Fixture; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; diff --git a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/SomeClassMethod.php.inc b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/SomeClassMethod.php.inc index 5338b487857..0e80e9b75ea 100644 --- a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/SomeClassMethod.php.inc +++ b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/SomeClassMethod.php.inc @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\Fixture\Gedmo\Slug; +namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\Fixture; use Gedmo\Mapping\Annotation as Gedmo; diff --git a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/SomeEntity.php.inc b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/SomeEntity.php.inc index 53cf835f44a..6f0ca63fa9d 100644 --- a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/SomeEntity.php.inc +++ b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/SomeEntity.php.inc @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\Fixture\DoctrineEntity; +namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\Fixture; use Doctrine\ORM\Mapping as ORM; diff --git a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/SomeEntityBrackets.php.inc b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/SomeEntityBrackets.php.inc index 414e736a899..0f247afe408 100644 --- a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/SomeEntityBrackets.php.inc +++ b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/Fixture/SomeEntityBrackets.php.inc @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\Fixture\DoctrineEntity; +namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\Fixture; use Doctrine\ORM\Mapping as ORM; diff --git a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/FixtureModify/route_with_extra_methods.php.inc b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/FixtureModify/route_with_extra_methods.php.inc index 00f4aaf4598..70833bcdd64 100644 --- a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/FixtureModify/route_with_extra_methods.php.inc +++ b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/FixtureModify/route_with_extra_methods.php.inc @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\FixtureModif; +namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\FixtureModify; use Symfony\Component\Routing\Annotation\Route; use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template; diff --git a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/FixtureNested/FormattingDoctrineEntity.php.inc b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/FixtureNested/FormattingDoctrineEntity.php.inc index c5da1e79d0d..e2557ead72e 100644 --- a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/FixtureNested/FormattingDoctrineEntity.php.inc +++ b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/FixtureNested/FormattingDoctrineEntity.php.inc @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\Fixture\DoctrineTable; +namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\FixtureNested; use Doctrine\ORM\Mapping as ORM; diff --git a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/FixtureNested/JoinTable.php.inc b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/FixtureNested/JoinTable.php.inc index bde92978981..5cf482ef35f 100644 --- a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/FixtureNested/JoinTable.php.inc +++ b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/FixtureNested/JoinTable.php.inc @@ -2,7 +2,7 @@ declare(strict_types=1); -namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\Fixture; +namespace Rector\Tests\BetterPhpDocParser\PhpDocParser\TagValueNodeReprint\FixtureNested; use Doctrine\ORM\Mapping as ORM; diff --git a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/FixtureNested/JoinTableWithJoinColumns.php.inc b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/FixtureNested/JoinTableWithJoinColumns.php.inc index 0231ff23d82..80d424f0737 100644 --- a/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/FixtureNested/JoinTableWithJoinColumns.php.inc +++ b/packages-tests/BetterPhpDocParser/PhpDocParser/TagValueNodeReprint/FixtureNested/JoinTableWithJoinColumns.php.inc @@ -1,5 +1,7 @@ ----- -namespace Rector\Comments\Tests\CommentRemover\Fixture; +namespace Rector\Tests\Comments\CommentRemover\Fixture; $values = new class { @@ -28,7 +26,6 @@ $values = new class switch ($value) { case 'key': return 'https://some_very_long_link.cz'; - break; } } }; diff --git a/phpstan-for-fixtures.neon b/phpstan-for-fixtures.neon new file mode 100644 index 00000000000..191ffadcff6 --- /dev/null +++ b/phpstan-for-fixtures.neon @@ -0,0 +1,33 @@ +includes: + - vendor/symplify/phpstan-extensions/config/config.neon + - vendor/symplify/phpstan-rules/config/services/services.neon + +rules: + - Symplify\PHPStanRules\Rules\CheckClassNamespaceFollowPsr4Rule + +parameters: + reportUnmatchedIgnoredErrors: false + customRulesetUsed: true + + fileExtensions: + - inc + + paths: + - packages-tests/ + - rules-tests/ + + excludePaths: + - '*/RenameClassRector/*' + - '*/Source/phpstan.phar/*' + - '*/ImportFullyQualifiedNamesRector/*' + # rector rules which target php versions which do not yet support namespaces + - 'rules-tests/Php70/Rector/ClassMethod/Php4ConstructorRector/*' + # test-case mixes global scope and namespace + - 'rules-tests/TypeDeclaration/Rector/ClassMethod/AddReturnTypeDeclarationRector/Fixture/extended_parent.php.inc' + - 'rules-tests/CodingStyle/Rector/Stmt/NewlineAfterStatementRector/Fixture/no_new_line_classlike.php.inc' + # intentionally without namespace + - 'rules-tests/CodeQuality/Rector/Class_/CompleteDynamicPropertiesRector/Fixture/class_string_case_sensitive.php.inc' + - 'rules-tests/CodeQuality/Rector/Class_/CompleteDynamicPropertiesRector/Fixture/class_string_case_insensitive.php.inc' + - 'rules-tests/Strict/Rector/If_/BooleanInIfConditionRuleFixerRector/Fixture/skip_result_object.php.inc' + - 'rules-tests/Php80/Rector/Class_/AnnotationToAttributeRector/Fixture/non_namespaced_class_with_annotation.php.inc' + - 'rules-tests/Removing/Rector/ClassMethod/ArgumentRemoverRector/Fixture/fixture2.php.inc' diff --git a/rules-tests/CodeQuality/Rector/Catch_/ThrowWithPreviousExceptionRector/Fixture/named_argument.php.inc b/rules-tests/CodeQuality/Rector/Catch_/ThrowWithPreviousExceptionRector/Fixture/named_argument.php.inc index 60290c6eaae..0e9b6859aa1 100644 --- a/rules-tests/CodeQuality/Rector/Catch_/ThrowWithPreviousExceptionRector/Fixture/named_argument.php.inc +++ b/rules-tests/CodeQuality/Rector/Catch_/ThrowWithPreviousExceptionRector/Fixture/named_argument.php.inc @@ -1,6 +1,6 @@ 'bar']; - + return array_merge(['baz' => 'xxx'], $array); } } @@ -16,14 +16,14 @@ final class DemoFile ----- 'bar']; - + return ['baz' => 'xxx', ...$array]; } } diff --git a/rules-tests/Php74/Rector/FuncCall/ArraySpreadInsteadOfArrayMergeRector/FixturePhp81/flatten_variable_and_explicit_array.php.inc b/rules-tests/Php74/Rector/FuncCall/ArraySpreadInsteadOfArrayMergeRector/FixturePhp81/flatten_variable_and_explicit_array.php.inc index 25c42b0bf41..686d0669001 100644 --- a/rules-tests/Php74/Rector/FuncCall/ArraySpreadInsteadOfArrayMergeRector/FixturePhp81/flatten_variable_and_explicit_array.php.inc +++ b/rules-tests/Php74/Rector/FuncCall/ArraySpreadInsteadOfArrayMergeRector/FixturePhp81/flatten_variable_and_explicit_array.php.inc @@ -1,6 +1,6 @@ ----- diff --git a/rules-tests/Renaming/Rector/StaticCall/RenameStaticMethodRector/Fixture/fixture2.php.inc b/rules-tests/Renaming/Rector/StaticCall/RenameStaticMethodRector/Fixture/fixture2.php.inc index 63ba55d42e1..7da36e09ee4 100644 --- a/rules-tests/Renaming/Rector/StaticCall/RenameStaticMethodRector/Fixture/fixture2.php.inc +++ b/rules-tests/Renaming/Rector/StaticCall/RenameStaticMethodRector/Fixture/fixture2.php.inc @@ -1,5 +1,7 @@ ----- diff --git a/rules-tests/TypeDeclaration/Rector/ClassMethod/AddVoidReturnTypeWhereNoReturnRector/Fixture/exception.php.inc b/rules-tests/TypeDeclaration/Rector/ClassMethod/AddVoidReturnTypeWhereNoReturnRector/Fixture/exception.php.inc index acdae62ba67..151af17faa1 100644 --- a/rules-tests/TypeDeclaration/Rector/ClassMethod/AddVoidReturnTypeWhereNoReturnRector/Fixture/exception.php.inc +++ b/rules-tests/TypeDeclaration/Rector/ClassMethod/AddVoidReturnTypeWhereNoReturnRector/Fixture/exception.php.inc @@ -1,5 +1,7 @@ ----- diff --git a/rules-tests/TypeDeclaration/Rector/ClassMethod/AddVoidReturnTypeWhereNoReturnRector/Fixture/never_method.php.inc b/rules-tests/TypeDeclaration/Rector/ClassMethod/AddVoidReturnTypeWhereNoReturnRector/Fixture/never_method.php.inc index 54a19960569..2f2aa34fb2e 100644 --- a/rules-tests/TypeDeclaration/Rector/ClassMethod/AddVoidReturnTypeWhereNoReturnRector/Fixture/never_method.php.inc +++ b/rules-tests/TypeDeclaration/Rector/ClassMethod/AddVoidReturnTypeWhereNoReturnRector/Fixture/never_method.php.inc @@ -9,6 +9,7 @@ final class ExitMethod exit(); } } +?> ----- diff --git a/rules-tests/TypeDeclaration/Rector/ClassMethod/AddVoidReturnTypeWhereNoReturnRector/Fixture/skip_abstract_method.php.inc b/rules-tests/TypeDeclaration/Rector/ClassMethod/AddVoidReturnTypeWhereNoReturnRector/Fixture/skip_abstract_method.php.inc index 16b0aee8c28..55fe49bb8ca 100644 --- a/rules-tests/TypeDeclaration/Rector/ClassMethod/AddVoidReturnTypeWhereNoReturnRector/Fixture/skip_abstract_method.php.inc +++ b/rules-tests/TypeDeclaration/Rector/ClassMethod/AddVoidReturnTypeWhereNoReturnRector/Fixture/skip_abstract_method.php.inc @@ -1,5 +1,7 @@ message = $message; $this->code = $code; } -} \ No newline at end of file +} diff --git a/rules-tests/TypeDeclaration/Rector/Property/TypedPropertyFromStrictGetterMethodReturnTypeRector/Fixture/some_self.php.inc b/rules-tests/TypeDeclaration/Rector/Property/TypedPropertyFromStrictGetterMethodReturnTypeRector/Fixture/some_self.php.inc index 8e357f86ce0..7a4a4f32a0b 100644 --- a/rules-tests/TypeDeclaration/Rector/Property/TypedPropertyFromStrictGetterMethodReturnTypeRector/Fixture/some_self.php.inc +++ b/rules-tests/TypeDeclaration/Rector/Property/TypedPropertyFromStrictGetterMethodReturnTypeRector/Fixture/some_self.php.inc @@ -1,6 +1,6 @@ -----