Skip to content

Commit 1dfeb95

Browse files
committed
fix build
1 parent a61a04a commit 1dfeb95

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/Type/Doctrine/Collection/IsEmptyTypeSpecifyingExtension.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,9 @@ public function isMethodSupported(
4343
TypeSpecifierContext $context
4444
): bool
4545
{
46-
return (
47-
$methodReflection->getDeclaringClass()->getName() === $this->collectionClass
48-
|| $methodReflection->getDeclaringClass()->isSubclassOf($this->collectionClass)
49-
)
50-
&& $methodReflection->getName() === self::IS_EMPTY_METHOD_NAME;
46+
return
47+
$methodReflection->getDeclaringClass()->is($this->collectionClass)
48+
&& $methodReflection->getName() === self::IS_EMPTY_METHOD_NAME;
5149
}
5250

5351
public function specifyTypes(

0 commit comments

Comments
 (0)