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 |
||
34 | 2 | public function handle(object $bindTo, string $source): void |
|
35 | 2 | { |
|
36 | $cb = function (Payload $payload): void { |
||
37 | /** |
||
38 | * @psalm-suppress UndefinedMethod |
||
39 | */ |
||
40 | $this->emit('message', [ /** @phpstan-ignore-line */ |
||
|
|||
41 | $payload, |
||
42 | $this, |
||
43 | ]); |
||
44 | }; |
||
45 | 1 | $cb = $cb->bindTo($bindTo); |
|
46 | 1 | /** |
|
47 | 1 | * @psalm-suppress PossiblyInvalidFunctionCall |
|
48 | 1 | */ |
|
49 | $cb($this->payload); |
||
50 | 1 | } |
|
52 |
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.