Skip to content

Commit c88dbd0

Browse files
Remove strtolower
1 parent bcaf46c commit c88dbd0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Type/PHPUnit/MockForIntersectionDynamicReturnTypeExtension.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
use PHPUnit\Framework\MockObject\Stub;
1717
use PHPUnit\Framework\TestCase;
1818
use function count;
19-
use function strtolower;
2019

2120
class MockForIntersectionDynamicReturnTypeExtension implements DynamicMethodReturnTypeExtension, DynamicStaticMethodReturnTypeExtension
2221
{
@@ -28,12 +27,12 @@ public function getClass(): string
2827

2928
public function isMethodSupported(MethodReflection $methodReflection): bool
3029
{
31-
return strtolower($methodReflection->getName()) === 'createmockforintersectionofinterfaces';
30+
return $methodReflection->getName() === 'createMockForIntersectionOfInterfaces';
3231
}
3332

3433
public function isStaticMethodSupported(MethodReflection $methodReflection): bool
3534
{
36-
return strtolower($methodReflection->getName()) === 'createstubforintersectionofinterfaces';
35+
return $methodReflection->getName() === 'createStubForIntersectionOfInterfaces';
3736
}
3837

3938
public function getTypeFromStaticMethodCall(MethodReflection $methodReflection, StaticCall $methodCall, Scope $scope): ?Type

0 commit comments

Comments
 (0)