Skip to content

Commit

Permalink
[PHPStan] Clean up PHPStan ignore errors (#2089)
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Apr 17, 2022
1 parent b8d0606 commit 996caa3
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,6 @@ parameters:
-
message: '#foreach\(\), while\(\), for\(\) or if\(\) cannot contain a complex expression\. Extract it to a new variable on a line before#'
paths:
- rules/CodeQuality/Rector/Return_/SimplifyUselessVariableRector.php
- rules/Php70/Rector/FuncCall/MultiDirnameRector.php
- src/Application/FileProcessor.php
- src/PhpParser/Node/BetterNodeFinder.php
Expand Down Expand Up @@ -564,9 +563,6 @@ parameters:

- '#foreach\(\), while\(\), for\(\) or if\(\) cannot contain a complex expression\. Extract it to a new variable on a line before#'

# false positive
- '#Method Rector\\Php71\\Rector\\FuncCall\\RemoveExtraParametersRector\:\:resolveMaximumAllowedParameterCount\(\) should return int but returns int<0, max>\|false#'

# double protection on purpose to ensure the type
-
message: '#Call to static method Webmozart\\Assert\\Assert\:\:allString\(\) with array<string> will always evaluate to true#'
Expand Down

0 comments on commit 996caa3

Please sign in to comment.