Skip to content

Commit

Permalink
Update Rector build
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Mar 18, 2021
1 parent 68d7334 commit 6e9ecfa
Show file tree
Hide file tree
Showing 3 changed files with 2,778 additions and 3,083 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ jobs:
- |
git clone https://github.com/rectorphp/rector.git e2e/integration/repo
cd e2e/integration/repo
git checkout aa16532ea3228dcd47735b5408952f7ebc766d30
git checkout ef8bee1d17659816998a7ef330b7a2123d6d89de
cp ../rector-composer.lock composer.lock
composer install
../../../phpstan.phar analyse -c ../rector.neon
Expand Down
178 changes: 4 additions & 174 deletions e2e/integration/rector-baseline.neon
Original file line number Diff line number Diff line change
@@ -1,182 +1,12 @@
parameters:
ignoreErrors:
-
message: "#^Method Rector\\\\BetterPhpDocParser\\\\PhpDocNodeFactory\\\\Doctrine\\\\Property_\\\\DoctrineTargetEntityPhpDocNodeFactory\\:\\:createFromNodeAndTokens\\(\\) should return PHPStan\\\\PhpDocParser\\\\Ast\\\\PhpDoc\\\\PhpDocTagValueNode\\|null but returns object\\.$#"
message: "#^Property PhpParser\\\\Node\\\\Scalar\\\\DNumber\\:\\:\\$value \\(float\\|int\\) does not accept string\\.$#"
count: 1
path: repo/packages/better-php-doc-parser/src/PhpDocNodeFactory/Doctrine/Property_/DoctrineTargetEntityPhpDocNodeFactory.php
path: repo/rules/DowngradePhp74/Rector/LNumber/DowngradeNumericLiteralSeparatorRector.php

-
message: "#^Method Rector\\\\BetterPhpDocParser\\\\PhpDocNodeFactory\\\\MultiPhpDocNodeFactory\\:\\:createFromNodeAndTokens\\(\\) should return PHPStan\\\\PhpDocParser\\\\Ast\\\\PhpDoc\\\\PhpDocTagValueNode\\|null but returns object\\.$#"
message: "#^Property PhpParser\\\\Node\\\\Scalar\\\\DNumber\\:\\:\\$value \\(float\\|int\\) does not accept string\\.$#"
count: 1
path: repo/packages/better-php-doc-parser/src/PhpDocNodeFactory/MultiPhpDocNodeFactory.php

-
message: "#^Argument of an invalid type array\\<string, class\\-string\\>\\|false supplied for foreach, only iterables are supported\\.$#"
count: 1
path: repo/packages/family-tree/src/NodeAnalyzer/ClassChildAnalyzer.php

-
message: "#^PHPDoc tag @var above a method has no effect\\.$#"
count: 1
path: repo/packages/post-rector/src/Collector/PropertyToAddCollector.php

-
message: "#^Method Rector\\\\StaticTypeMapper\\\\Mapper\\\\ScalarStringToTypeMapper\\:\\:mapScalarStringToType\\(\\) should return PHPStan\\\\Type\\\\Type but returns object\\.$#"
count: 1
path: repo/packages/static-type-mapper/src/Mapper/ScalarStringToTypeMapper.php

-
message: "#^Argument of an invalid type array\\<string, class\\-string\\>\\|false supplied for foreach, only iterables are supported\\.$#"
count: 1
path: repo/packages/vendor-locker/src/NodeVendorLocker/ClassMethodVendorLockResolver.php

-
message: "#^Argument of an invalid type array\\<string, class\\-string\\>\\|false supplied for foreach, only iterables are supported\\.$#"
count: 1
path: repo/packages/vendor-locker/src/NodeVendorLocker/ClassMethodVisibilityVendorLockResolver.php

-
message: "#^Argument of an invalid type array\\<string, string\\>\\|false supplied for foreach, only iterables are supported\\.$#"
count: 1
path: repo/packages/vendor-locker/src/NodeVendorLocker/ClassMethodVisibilityVendorLockResolver.php

-
message: "#^Argument of an invalid type array\\<string, class\\-string\\>\\|false supplied for foreach, only iterables are supported\\.$#"
count: 1
path: repo/packages/vendor-locker/src/NodeVendorLocker/PropertyVisibilityVendorLockResolver.php

-
message: "#^Method Rector\\\\CodeQuality\\\\Rector\\\\Assign\\\\CombinedAssignRector\\:\\:refactor\\(\\) should return PhpParser\\\\Node\\|null but returns object\\.$#"
count: 1
path: repo/rules/code-quality/src/Rector/Assign/CombinedAssignRector.php

-
message: "#^Method Rector\\\\CodeQuality\\\\Rector\\\\Identical\\\\SimplifyConditionsRector\\:\\:createInversedBooleanOp\\(\\) should return PhpParser\\\\Node\\\\Expr\\\\BinaryOp\\|null but returns object\\.$#"
count: 1
path: repo/rules/code-quality/src/Rector/Identical/SimplifyConditionsRector.php

-
message: "#^Property PhpParser\\\\Node\\\\Stmt\\\\Return_\\:\\:\\$expr \\(PhpParser\\\\Node\\\\Expr\\|null\\) does not accept object\\.$#"
count: 1
path: repo/rules/code-quality/src/Rector/Return_/SimplifyUselessVariableRector.php

-
message: "#^Method Rector\\\\CodeQuality\\\\Rector\\\\Ternary\\\\UnnecessaryTernaryExpressionRector\\:\\:refactor\\(\\) should return PhpParser\\\\Node\\|null but returns object\\.$#"
count: 1
path: repo/rules/code-quality/src/Rector/Ternary/UnnecessaryTernaryExpressionRector.php

-
message: "#^Argument of an invalid type array\\<string, string\\>\\|false supplied for foreach, only iterables are supported\\.$#"
count: 1
path: repo/rules/dead-code/src/UnusedNodeResolver/ClassUnusedPrivateClassMethodResolver.php

-
message: "#^Argument of an invalid type array\\<string, class\\-string\\>\\|false supplied for foreach, only iterables are supported\\.$#"
count: 1
path: repo/rules/dead-code/src/UnusedNodeResolver/ClassUnusedPrivateClassMethodResolver.php

-
message: "#^Method Rector\\\\Privatization\\\\Rector\\\\Property\\\\PrivatizeFinalClassPropertyRector\\:\\:getParentClasses\\(\\) should return array\\<class\\-string\\> but returns array\\<string, class\\-string\\>\\|false\\.$#"
count: 1
path: repo/rules/privatization/src/Rector/Property/PrivatizeFinalClassPropertyRector.php

-
message: "#^Method Rector\\\\Privatization\\\\VisibilityGuard\\\\ClassMethodVisibilityGuard\\:\\:getParentClasses\\(\\) should return array\\<class\\-string\\> but returns array\\<string, class\\-string\\>\\|false\\.$#"
count: 1
path: repo/rules/privatization/src/VisibilityGuard/ClassMethodVisibilityGuard.php

-
message: "#^Parameter \\#2 \\$haystack of function in_array expects array, array\\<string, string\\>\\|false given\\.$#"
count: 1
path: repo/rules/restoration/src/Rector/Class_/RemoveUselessJustForSakeInterfaceRector.php

-
message: "#^Argument of an invalid type array\\<string, string\\>\\|false supplied for foreach, only iterables are supported\\.$#"
count: 2
path: repo/rules/solid/src/Rector/ClassMethod/UseInterfaceOverImplementationInConstructorRector.php

-
message: "#^Cannot access offset mixed on \\(array\\<string, string\\>&nonEmpty\\)\\|false\\.$#"
count: 1
path: repo/rules/solid/src/Rector/ClassMethod/UseInterfaceOverImplementationInConstructorRector.php

-
message: "#^Parameter \\#1 \\$input of function array_values expects array, array\\<string, string\\>\\|false given\\.$#"
count: 1
path: repo/rules/solid/src/Rector/ClassMethod/UseInterfaceOverImplementationInConstructorRector.php

-
message: "#^Parameter \\#2 \\$haystack of function in_array expects array, array\\<string, string\\>\\|false given\\.$#"
count: 1
path: repo/rules/solid/src/Rector/ClassMethod/UseInterfaceOverImplementationInConstructorRector.php

-
message: "#^Argument of an invalid type array\\<string, string\\>\\|false supplied for foreach, only iterables are supported\\.$#"
count: 1
path: repo/rules/symfony/src/ValueObject/ServiceMap/ServiceMap.php

-
message: "#^Method Rector\\\\Core\\\\Exception\\\\ShouldNotHappenException\\:\\:__construct\\(\\) has parameter \\$code with no typehint specified\\.$#"
count: 1
path: repo/src/Exception/ShouldNotHappenException.php

-
message: "#^Method Rector\\\\Core\\\\Exception\\\\ShouldNotHappenException\\:\\:__construct\\(\\) has parameter \\$message with no typehint specified\\.$#"
count: 1
path: repo/src/Exception/ShouldNotHappenException.php

-
message: "#^Method Rector\\\\Core\\\\PhpParser\\\\Node\\\\Manipulator\\\\BinaryOpManipulator\\:\\:inverseBinaryOp\\(\\) should return PhpParser\\\\Node\\\\Expr\\\\BinaryOp\\|null but returns object\\.$#"
count: 1
path: repo/src/PhpParser/Node/Manipulator/BinaryOpManipulator.php

-
message: "#^Method Rector\\\\Core\\\\PhpParser\\\\Node\\\\Manipulator\\\\BinaryOpManipulator\\:\\:invertCondition\\(\\) should return PhpParser\\\\Node\\\\Expr\\\\BinaryOp\\|null but returns object\\.$#"
count: 1
path: repo/src/PhpParser/Node/Manipulator/BinaryOpManipulator.php

-
message: "#^Method Rector\\\\Core\\\\PhpParser\\\\Node\\\\Manipulator\\\\BinaryOpManipulator\\:\\:inverseNode\\(\\) should return PhpParser\\\\Node but returns object\\.$#"
count: 1
path: repo/src/PhpParser/Node/Manipulator/BinaryOpManipulator.php

-
message: "#^Argument of an invalid type array\\<string, class\\-string\\>\\|false supplied for foreach, only iterables are supported\\.$#"
count: 1
path: repo/src/PhpParser/Node/Manipulator/ClassDependencyManipulator.php

-
message: "#^Argument of an invalid type array\\<string, string\\>\\|false supplied for foreach, only iterables are supported\\.$#"
count: 1
path: repo/src/PhpParser/Node/Manipulator/ClassManipulator.php

-
message: "#^Argument of an invalid type array\\<string, string\\>\\|false supplied for foreach, only iterables are supported\\.$#"
count: 1
path: repo/src/PhpParser/Node/Manipulator/ClassMethodManipulator.php

-
message: "#^Argument of an invalid type array\\<string, class\\-string\\>\\|false supplied for foreach, only iterables are supported\\.$#"
count: 1
path: repo/src/PhpParser/Node/Manipulator/ClassMethodManipulator.php

-
message: "#^Cannot call method getMethod\\(\\) on PhpParser\\\\Node\\\\Stmt\\\\Class_\\|null\\.$#"
count: 1
path: repo/src/Rector/AbstractRector.php

-
message: "#^Cannot call method getMethod\\(\\) on PhpParser\\\\Node\\\\Stmt\\\\Class_\\|null\\.$#"
count: 1
path: repo/packages/file-system-rector/src/Rector/AbstractFileSystemRector.php

-
message: "#^Method Rector\\\\Core\\\\Testing\\\\PHPUnit\\\\RunnableRectorFactory\\:\\:createRunnableClass\\(\\) should return Rector\\\\Core\\\\Testing\\\\Contract\\\\RunnableInterface but returns object\\.$#"
count: 1
path: repo/src/Testing/PHPUnit/RunnableRectorFactory.php

-
message: "#^Call to an undefined method PhpParser\\\\Node\\\\Expr\\|PhpParser\\\\Node\\\\Name\\:\\:toString\\(\\)\\.$#"
count: 1
path: repo/utils/phpstan-extensions/src/ReturnTypeExtension/NodeFinder/FindFirstInstanceOfReturnTypeExtension.php
path: repo/rules/Php74/Rector/LNumber/AddLiteralSeparatorToNumberRector.php

0 comments on commit 6e9ecfa

Please sign in to comment.