Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
37 | 2 | public function handle(object $bindTo, string $source): void |
|
38 | 2 | { |
|
39 | $cb = function (Throwable $payload): void { |
||
40 | /** |
||
41 | * @psalm-suppress UndefinedMethod |
||
42 | */ |
||
43 | $this->emit('error', [ /** @phpstan-ignore-line */ |
||
|
|||
44 | $payload, |
||
45 | $this, |
||
46 | ]); |
||
47 | }; |
||
48 | 1 | $cb = $cb->bindTo($bindTo); |
|
49 | 1 | /** |
|
50 | 1 | * @psalm-suppress PossiblyInvalidFunctionCall |
|
51 | 1 | */ |
|
52 | $cb($this->payload); |
||
53 | 1 | } |
|
55 |
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.