Skip to content

Commit 434a8ab

Browse files
Merge pull request #101 from oliverklee/cleanup/in-array
[CLEANUP] Drop an unnecessary `in_array`
2 parents 5e5e2a5 + 75ed109 commit 434a8ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Type/RepositoryFindAllDynamicReturnTypeExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function isMethodSupported(
2929
MethodReflection $methodReflection
3030
): bool
3131
{
32-
return in_array($methodReflection->getName(), ['findAll'], true);
32+
return $methodReflection->getName() === 'findAll';
3333
}
3434

3535
public function getTypeFromMethodCall(

0 commit comments

Comments
 (0)