Skip to content

Commit aba173a

Browse files
author
Elliot Bruneel
committed
chore: move false positive phpstan error in baseline
1 parent b24586b commit aba173a

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

phpstan-baseline.neon

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2736,6 +2736,12 @@ parameters:
27362736
count: 1
27372737
path: src/Persisters/Entity/BasicEntityPersister.php
27382738

2739+
-
2740+
message: '#^If condition is always true\.$#'
2741+
identifier: if.alwaysTrue
2742+
count: 1
2743+
path: src/Persisters/Entity/BasicEntityPersister.php
2744+
27392745
-
27402746
message: '#^Method Doctrine\\ORM\\Persisters\\Entity\\BasicEntityPersister\:\:__construct\(\) has parameter \$class with generic class Doctrine\\ORM\\Mapping\\ClassMetadata but does not specify its types\: T$#'
27412747
identifier: missingType.generics

src/Persisters/Entity/BasicEntityPersister.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1765,7 +1765,6 @@ public function getSelectConditionStatementSQL($field, $value, $assoc = null, $c
17651765

17661766
$in = $column . ' ' . sprintf(self::$comparisonMap[$comparison], $placeholders);
17671767

1768-
// @phpstan-ignore if.alwaysTrue (false positive)
17691768
if ($nullKeys) {
17701769
if ($nonNullValues) {
17711770
$selectedColumns[] = sprintf('(%s OR %s IS NULL)', $in, $column);

0 commit comments

Comments
 (0)