Skip to content

Commit

Permalink
ignore some phpstan findings #3
Browse files Browse the repository at this point in the history
Fixing them would not improve code quality
  • Loading branch information
Josef Stich committed Jul 3, 2024
1 parent 8a57505 commit 41b78d5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ parameters:
stubFiles:
- phpstan/stubs/CakePHP.stub
ignoreErrors:
# False positive as __() function can accept more than 2 parameters.
- '/Function __ invoked with [0-9_]+ parameters, 1-2 required./'
- '/Access to an undefined property BehaviorCollection::\$Filtered./'
- '/Dead catch \- InvalidArgumentException is never thrown in the try block./'
- '/Unreachable statement \- code above always terminates./'
- '/Call to an undefined method Model::setFilterValues\(\)./'
- '/Call to an undefined method Model::getFilterValues\(\)./'
- '/Access to an undefined property Model::\$DocumentCategory./'
- '/Access to an undefined property Model::\$itemToUnset./'

0 comments on commit 41b78d5

Please sign in to comment.