Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore two more PHPstan false positives #2685

Merged
merged 1 commit into from
Jul 7, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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