Skip to content

Commit

Permalink
Ignore two more PHPstan false positives
Browse files Browse the repository at this point in the history
  • Loading branch information
bobdenotter committed Jul 7, 2021
1 parent 61a8b36 commit e73b024
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 e73b024

Please sign in to comment.