Browse Source

Merge pull request #16793 from cakephp/phpstan

Ignore error reported by phpstan
ADmad 3 years ago
parent
commit
bac8df93b5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Database/Expression/WhenThenExpression.php

+ 1 - 1
src/Database/Expression/WhenThenExpression.php

@@ -134,7 +134,7 @@ class WhenThenExpression implements ExpressionInterface
                 'The `$when` argument must be either a non-empty array, a scalar value, an object, ' .
                 'or an instance of `\%s`, `%s` given.',
                 ExpressionInterface::class,
-                is_array($when) ? '[]' : getTypeName($when)
+                is_array($when) ? '[]' : getTypeName($when) // @phpstan-ignore-line
             ));
         }