Skip to content

Commit 0e351ec

Browse files
authored
enable refactor() no null returns rule (#7680)
1 parent 09bd026 commit 0e351ec

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@
5050
"phpstan/phpstan-phpunit": "^2.0",
5151
"phpstan/phpstan-webmozart-assert": "^2.0",
5252
"phpunit/phpunit": "^11.5",
53-
"rector/jack": "^0.2.5",
53+
"rector/jack": "^0.4",
5454
"rector/release-notes-generator": "^0.5",
5555
"rector/swiss-knife": "^2.3",
5656
"rector/type-perfect": "^2.1",
5757
"shipmonk/composer-dependency-analyser": "^1.8",
5858
"symplify/phpstan-extensions": "^12.0.2",
59-
"symplify/phpstan-rules": "^14.8.5",
59+
"symplify/phpstan-rules": "^14.9.1",
6060
"symplify/vendor-patches": "^11.5",
6161
"tomasvotruba/class-leak": "^2.1",
6262
"tracy/tracy": "^2.11"

phpstan.neon

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,3 +380,8 @@ parameters:
380380
message: '#Method (.*?)refactor\(\) (never returns|should return) (.*?)#'
381381
paths:
382382
- rules/Php70/Rector/If_/IfToSpaceshipRector.php
383+
384+
# handles full file
385+
-
386+
path: rules/TypeDeclaration/Rector/StmtsAwareInterface/IncreaseDeclareStrictTypesRector.php
387+
identifier: rector.noOnlyNullReturnInRefactor

0 commit comments

Comments
 (0)