Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
25 | protected function getObjectCreator(): ObjectCreatorServiceInterface |
||
26 | { |
||
27 | $objectCreatorService = $this->createMock(ObjectCreatorServiceInterface::class); |
||
28 | $objectCreatorService->method('createObjectFromInterface')->willReturnCallback(function ($if, $args) { |
||
|
|||
29 | $class = str_replace("\\Entity\\", "\\Tests\\Entity\\", $if); |
||
30 | $class = str_replace("Interface", "", $class); |
||
31 | return new $class(...$args); |
||
32 | }); |
||
33 | /** @var ObjectCreatorServiceInterface $objectCreatorService */ |
||
34 | return $objectCreatorService; |
||
35 | } |
||
36 | //</editor-fold desc="Protected Methods"> |
||
37 | } |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.