[PHPStan] Clean up PHPStan ignore errors (#2089)

This commit is contained in:
Abdul Malik Ikhsan 2022-04-17 21:01:44 +07:00 committed by GitHub
parent b8d0606305
commit 996caa3f1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
@ -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#'