Skip to content

Commit

Permalink
Update phpstan config
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Sep 4, 2019
1 parent 1ea9a61 commit 41b6fa9
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions phpstan.neon
Expand Up @@ -18,7 +18,6 @@ parameters:
- '#Call to an undefined method Cake\\Auth\\Storage\\StorageInterface::getConfig\(\)#'
- '#Call to an undefined method Cake\\Auth\\Storage\\StorageInterface::setConfig\(\)#'
- '#Variable \$_SESSION in isset\(\) always exists and is not nullable#'
- '#PHPDoc tag @throws with type PHPUnit\\Exception|Throwable is not subtype of Throwable#'
- '#Call to an undefined method Cake\\Chronos\\DifferenceFormatterInterface::dateAgoInWords\(\)#'
- '#Call to an undefined method Cake\\Chronos\\DifferenceFormatterInterface::timeAgoInWords\(\)#'
- '#Return type \(void\) of method Cake\\Shell\\[A-Za-z]+Shell::main\(\) should be compatible with return type \(bool|int|null\) of method Cake\\Console\\Shell::main\(\)#'
Expand Down Expand Up @@ -94,10 +93,21 @@ parameters:
path: 'src/Database/Expression/TupleComparison.php'
-
message: '#Ternary operator condition is always true#'
path: 'src/Database/Expression/TupleComparison.php'
paths:
- 'src/Database/Expression/TupleComparison.php'
- 'src/TestSuite/IntegrationTestTrait.php'
-
message: '#Left side of && is always true#'
path: 'src/Database/Expression/TupleComparison.php'
-
message: '#Property Cake\\TestSuite\\IntegrationTestCase::\$_[a-zA-z]+ \([a-zA-Z\\]+\) does not accept null#'
path: 'src/TestSuite/IntegrationTestTrait.php'
-
message: '#Property Cake\\TestSuite\\ConsoleIntegrationTestCase::\$_[a-zA-z]+ \([a-zA-Z\\]+\) does not accept null#'
path: 'src/TestSuite/ConsoleIntegrationTestTrait.php'
-
message: '#Negated boolean expression is always false#'
path: 'src/TestSuite/IntegrationTestTrait.php'

earlyTerminatingMethodCalls:
Cake\Console\Shell:
Expand Down

0 comments on commit 41b6fa9

Please sign in to comment.