| Conditions | 7 |
| Paths | 64 |
| Total Lines | 24 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 56 | public function toArray(): array |
||
| 57 | { |
||
| 58 | $json = []; |
||
| 59 | |||
| 60 | if (isset($this->meta)) { |
||
| 61 | $json[Members::META] = $this->meta; |
||
| 62 | } |
||
| 63 | if (isset($this->links)) { |
||
| 64 | $json[Members::LINKS] = $this->links; |
||
| 65 | } |
||
| 66 | if (isset($this->errors)) { |
||
| 67 | $json[Members::ERRORS] = $this->errors; |
||
| 68 | } |
||
| 69 | if (isset($this->data)) { |
||
| 70 | $json[Members::DATA] = $this->data->toArray(); |
||
|
|
|||
| 71 | } |
||
| 72 | if (isset($this->included)) { |
||
| 73 | $json[Members::INCLUDED] = $this->included->toArray(); |
||
| 74 | } |
||
| 75 | if (isset($this->jsonapi)) { |
||
| 76 | $json[Members::JSONAPI] = $this->jsonapi; |
||
| 77 | } |
||
| 78 | |||
| 79 | return $json; |
||
| 80 | } |
||
| 82 |
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.