Skip to content

Commit efe86cc

Browse files
authored
Clean up PHPStan ignore errors (#7262)
1 parent e97b14e commit efe86cc

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

phpstan.neon

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -187,9 +187,6 @@ parameters:
187187
message: '#Function "(function_exists|dump_node)\(\)" cannot be used/left in the code#'
188188
path: src/functions/node_helper.php
189189

190-
# false positive on enums
191-
- '#Method Rector\\Console\\Command\\SetupCICommand\:\:resolveCurrentCI\(\) never returns (.*?) so it can be removed from the return type#'
192-
193190
# stmts aware/expression generics
194191
- '#PhpParser\\Node\\Stmt\\Expression is not generic#'
195192

@@ -271,16 +268,13 @@ parameters:
271268
message: '#Fetching (deprecated )?class constant (.*?) of (deprecated )?class (Rector\\Set\\ValueObject\\DowngradeLevelSetList|Rector\\Symfony\\Set\\(.*?))#'
272269
path: src/Configuration/RectorConfigBuilder.php
273270

274-
- '#::provideMinPhpVersion\(\) never returns \d+ so it can be removed from the return type#'
275-
276271
# runtime comparison
277272
- '#Comparison operation ".*" between int<\d+, \d+> and \d+ is always true#'
278273

279274
# from mapper interface
280275
- '#mapToPhpParserNode\(\) never returns PhpParser\\.* so it can be removed from the return#'
281276

282277
# from constant string
283-
- '#Method Rector\\.*::providePolyfillPackage\(\) never returns#'
284278
- '#Method Rector\\.*::filterPolyfillPackages\(\) should return array\<#'
285279

286280
-

0 commit comments

Comments
 (0)