diff --git a/build/target-repository/composer.json b/build/target-repository/composer.json index 3b321d29ec2..827564d405c 100644 --- a/build/target-repository/composer.json +++ b/build/target-repository/composer.json @@ -7,7 +7,7 @@ ], "require": { "php": "^7.2|^8.0", - "phpstan/phpstan": "^1.5.5" + "phpstan/phpstan": "^1.5.6" }, "autoload": { "files": [ diff --git a/composer.json b/composer.json index f7d5244435b..497f2dbc349 100644 --- a/composer.json +++ b/composer.json @@ -23,7 +23,7 @@ "nikic/php-parser": "^4.13.2", "ondram/ci-detector": "^4.1", "phpstan/phpdoc-parser": "^1.4.4", - "phpstan/phpstan": "^1.5.5", + "phpstan/phpstan": "^1.5.6", "phpstan/phpstan-phpunit": "^1.0", "psr/log": "^2.0", "react/child-process": "^0.6.4", diff --git a/config/phpstan/static-reflection.neon b/config/phpstan/static-reflection.neon index 740ca36b7dd..ba661abd108 100644 --- a/config/phpstan/static-reflection.neon +++ b/config/phpstan/static-reflection.neon @@ -3,6 +3,10 @@ parameters: featureToggles: disableRuntimeReflectionProvider: false +conditionalTags: + PhpParser\NodeVisitor\NodeConnectingVisitor: + phpstan.parser.richParserNodeVisitor: true + services: - Rector\NodeTypeResolver\Reflection\BetterReflection\RectorBetterReflectionSourceLocatorFactory - Rector\NodeTypeResolver\Reflection\BetterReflection\SourceLocator\IntermediateSourceLocator