From 17ad9bcd472d67881480e2ca7f915d360d1f3c6b Mon Sep 17 00:00:00 2001 From: Ondrej Mirtes Date: Tue, 29 Mar 2022 09:00:35 +0200 Subject: [PATCH] Fix QueryBuilder type comparison --- src/Type/Doctrine/QueryBuilder/SimpleQueryBuilderType.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Type/Doctrine/QueryBuilder/SimpleQueryBuilderType.php b/src/Type/Doctrine/QueryBuilder/SimpleQueryBuilderType.php index bf969fd6..98660de8 100644 --- a/src/Type/Doctrine/QueryBuilder/SimpleQueryBuilderType.php +++ b/src/Type/Doctrine/QueryBuilder/SimpleQueryBuilderType.php @@ -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);