diff --git a/composer.json b/composer.json index d9d9d9baf90..23867458801 100644 --- a/composer.json +++ b/composer.json @@ -50,13 +50,13 @@ "phpstan/phpstan-phpunit": "^2.0", "phpstan/phpstan-webmozart-assert": "^2.0", "phpunit/phpunit": "^11.5", - "rector/jack": "^0.2.5", + "rector/jack": "^0.4", "rector/release-notes-generator": "^0.5", "rector/swiss-knife": "^2.3", "rector/type-perfect": "^2.1", "shipmonk/composer-dependency-analyser": "^1.8", "symplify/phpstan-extensions": "^12.0.2", - "symplify/phpstan-rules": "^14.8.5", + "symplify/phpstan-rules": "^14.9.1", "symplify/vendor-patches": "^11.5", "tomasvotruba/class-leak": "^2.1", "tracy/tracy": "^2.11" diff --git a/phpstan.neon b/phpstan.neon index bb4611ac336..4020702fc6f 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -380,3 +380,8 @@ parameters: message: '#Method (.*?)refactor\(\) (never returns|should return) (.*?)#' paths: - rules/Php70/Rector/If_/IfToSpaceshipRector.php + + # handles full file + - + path: rules/TypeDeclaration/Rector/StmtsAwareInterface/IncreaseDeclareStrictTypesRector.php + identifier: rector.noOnlyNullReturnInRefactor