Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,12 @@ parameters:
- '#Calling PHPStan\\Reflection\\Php\\PhpParameterReflection\:\:getName\(\) is not covered by backward compatibility promise\. The method might change in a minor PHPStan version#'

# false positive
- '#Access to an undefined property Rector\\Core\\Contract\\PhpParser\\Node\\StmtsAwareInterface\:\:\$stmts#'
- '#but class PhpParser\\Node\\Stmt\\Expression is not generic#'
- '#Access to an undefined property Rector\\Contract\\PhpParser\\Node\\StmtsAwareInterface\:\:\$stmts#'

# false positive
- '#Parameters should have "PhpParser\\Node\\Expr\\Closure" types as the only types passed to this method#'
- '#Parameter 1 should use "PHPStan\\BetterReflection\\Reflection\\Adapter\\ReflectionMethod" type as the only type passed to this method#'
- '#Parameter \#1 \$stmtsAware of method Rector\\NodeAnalyzer\\TerminatedNodeAnalyzer\:\:isAlwaysTerminated\(\) expects Rector\\Contract\\PhpParser\\Node\\StmtsAwareInterface, PhpParser\\Node\\Stmt\\ClassMethod given#'

# more advanced usage, but not always working
# see https://github.com/rectorphp/rector-src/actions/runs/11798721617/job/32865546672?pr=6422#step:5:110
Expand All @@ -59,9 +57,5 @@ parameters:
- identifier: argument.type
- identifier: assign.propertyType

- '#::provideMinPhpVersion\(\) never returns \d+ so it can be removed from the return type#'

# node finder
-
identifier: return.type
path: rules/Symfony73/NodeAnalyzer/CommandArgumentsAndOptionsResolver.php
# avoid notice on run on php 8.3
- identifier: typeCoverage.constantTypeCoverage