| Total Complexity | 5 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | final class Consumer |
||
| 20 | { |
||
| 21 | /** @var HandlerRegistryInterface */ |
||
| 22 | private $registry; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @codeCoverageIgnore |
||
| 26 | * @param HandlerRegistryInterface $registry |
||
| 27 | */ |
||
| 28 | public function __construct(HandlerRegistryInterface $registry) |
||
| 29 | { |
||
| 30 | $this->registry = $registry; |
||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @codeCoverageIgnore |
||
| 35 | * @param Worker $worker |
||
| 36 | * @param callable|null $finalize |
||
| 37 | */ |
||
| 38 | public function serve(Worker $worker, callable $finalize = null): void |
||
| 53 | } |
||
| 54 | } |
||
| 58 |
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.