Total Complexity | 4 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | final class Error implements JsonSerializable, ActionableMessageInterface |
||
13 | { |
||
14 | protected Throwable $payload; |
||
15 | |||
16 | public function __construct(Throwable $payload) |
||
17 | { |
||
18 | 3 | $this->payload = $payload; |
|
19 | } |
||
20 | 3 | ||
21 | 3 | public function getPayload(): Throwable |
|
22 | { |
||
23 | return $this->payload; |
||
24 | } |
||
25 | |||
26 | 2 | /** |
|
27 | * @return array<string,string|array<mixed>> |
||
28 | 2 | */ |
|
29 | public function jsonSerialize(): array |
||
34 | 2 | ]; |
|
35 | } |
||
36 | |||
37 | 2 | public function handle(object $bindTo, string $source): void |
|
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.