Skip to content

Commit

Permalink
[TASK] Add the Rector Type Perfect PHPStan rules (#1069)
Browse files Browse the repository at this point in the history
Fixes #886
  • Loading branch information
oliverklee authored Feb 16, 2025
1 parent f7ddf01 commit 6c96559
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"phpstan/phpstan-strict-rules": "1.6.1",
"phpunit/phpunit": "9.6.19",
"psr/log": "^1.0 || ^2.0 || ^3.0",
"rector/type-perfect": "1.0.0",
"saschaegerer/phpstan-typo3": "1.10.2",
"squizlabs/php_codesniffer": "3.11.3",
"ssch/typo3-rector": "2.12.0",
Expand Down
7 changes: 7 additions & 0 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ parameters:
- Tests
- ext_localconf.php

type_perfect:
no_mixed_property: true
no_mixed_caller: true
null_over_false: true
narrow_param: true
narrow_return: true

ignoreErrors:
-
message: '#^Call to static method PHPUnit\\Framework\\Assert\:\:assertInstanceOf\(\) .* will always evaluate to#'
Expand Down

0 comments on commit 6c96559

Please sign in to comment.