Skip to content

Commit

Permalink
Fix QueryBuilder type comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Mar 29, 2022
1 parent de8961d commit 17ad9bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Type/Doctrine/QueryBuilder/SimpleQueryBuilderType.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function isSuperTypeOf(Type $type): TrinaryLogic
$thisCount = count($this->getMethodCalls());
$thatCount = count($type->getMethodCalls());

return TrinaryLogic::createFromBoolean($thisCount >= $thatCount);
return TrinaryLogic::createFromBoolean($thisCount === $thatCount);
}

return parent::isSuperTypeOf($type);
Expand Down

0 comments on commit 17ad9bc

Please sign in to comment.