Skip to content

Commit 17ad9bc

Browse files
committed
Fix QueryBuilder type comparison
1 parent de8961d commit 17ad9bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Type/Doctrine/QueryBuilder/SimpleQueryBuilderType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function isSuperTypeOf(Type $type): TrinaryLogic
2424
$thisCount = count($this->getMethodCalls());
2525
$thatCount = count($type->getMethodCalls());
2626

27-
return TrinaryLogic::createFromBoolean($thisCount >= $thatCount);
27+
return TrinaryLogic::createFromBoolean($thisCount === $thatCount);
2828
}
2929

3030
return parent::isSuperTypeOf($type);

0 commit comments

Comments
 (0)