Skip to content

Commit

Permalink
Merge pull request #2685 from bolt/fix/phpstan-quirks
Browse files Browse the repository at this point in the history
Ignore two more PHPstan false positives
  • Loading branch information
bobdenotter authored Jul 7, 2021
2 parents 61a8b36 + e73b024 commit 20cba2b
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 20cba2b

Please sign in to comment.