Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
23 | public function serialize(ShouldBeStored $event): string |
||
24 | { |
||
25 | /* |
||
26 | * We call __sleep so `Illuminate\Queue\SerializesModels` will |
||
27 | * prepare all models in the event for serialization. |
||
28 | */ |
||
29 | if (method_exists($event, '__sleep')) { |
||
30 | $event->__sleep(); |
||
|
|||
31 | } |
||
32 | |||
33 | $json = $this->serializer->serialize($event, 'json'); |
||
34 | |||
35 | return $json; |
||
36 | } |
||
37 | |||
49 |
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.