| Total Complexity | 4 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | class AddPayloadBodyPlugin implements PluginInterface |
||
| 17 | { |
||
| 18 | protected JsonPacker $jsonPacker; |
||
| 19 | |||
| 20 | public function __construct(?JsonPacker $jsonPacker = null) |
||
| 21 | { |
||
| 22 | $this->jsonPacker = $jsonPacker ?? new JsonPacker(); |
||
| 23 | } |
||
| 24 | |||
| 25 | public function assembly(Rocket $rocket, Closure $next): Rocket |
||
| 34 | } |
||
| 35 | |||
| 36 | protected function getBody(?Collection $payload): string |
||
| 41 | } |
||
| 42 | } |
||
| 43 |
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.