From e73b024edf200965161423c6fd36a97b0da2cd44 Mon Sep 17 00:00:00 2001 From: Bob den Otter Date: Wed, 7 Jul 2021 16:58:06 +0200 Subject: [PATCH] Ignore two more PHPstan false positives --- phpstan.neon | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/phpstan.neon b/phpstan.neon index 59894c0dd..6e571ba27 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -21,11 +21,21 @@ parameters: message: '#Call to an undefined method Knp\\DoctrineBehaviors\\Contract\\Entity\\TranslationInterface#' path: %currentWorkingDirectory%/src/* - # Parameters in Storage\Directive\OrderDirective::orderByNumericField() aren't seen as ints + # false positive: Parameters in Storage\Directive\OrderDirective::orderByNumericField() aren't seen as integers - message: '#of method Doctrine\\ORM\\Query\\Expr::substring\(\) expects int#' path: %currentWorkingDirectory%/src/Storage/Directive/OrderDirective.php + # false positive: An item to the Logger's Record added by us isn't recognized + - + message: "#Offset 'location' does not exist on array#" + path: %currentWorkingDirectory%/src/Log/LogHandler.php + + # false positive: Parameter #1 $description of method Bolt\Entity\Media::setDescription() expects string|null, array given. + - + message: '#of method Bolt\\Entity\\Media::setDescription#' + path: %currentWorkingDirectory%/src/DataFixtures/ImagesFixtures.php + includes: - vendor/phpstan/phpstan-symfony/extension.neon - vendor/phpstan/phpstan-doctrine/extension.neon