We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a61a04a commit 1dfeb95Copy full SHA for 1dfeb95
src/Type/Doctrine/Collection/IsEmptyTypeSpecifyingExtension.php
@@ -43,11 +43,9 @@ public function isMethodSupported(
43
TypeSpecifierContext $context
44
): bool
45
{
46
- return (
47
- $methodReflection->getDeclaringClass()->getName() === $this->collectionClass
48
- || $methodReflection->getDeclaringClass()->isSubclassOf($this->collectionClass)
49
- )
50
- && $methodReflection->getName() === self::IS_EMPTY_METHOD_NAME;
+ return
+ $methodReflection->getDeclaringClass()->is($this->collectionClass)
+ && $methodReflection->getName() === self::IS_EMPTY_METHOD_NAME;
51
}
52
53
public function specifyTypes(
0 commit comments