| Total Complexity | 6 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 13 | trait ParentNodeWorkarounds |
||
| 14 | { |
||
| 15 | // https://github.com/php/php-src/pull/11768 - fixed in ~8.1.23, ^8.2.10 |
||
| 16 | // https://github.com/php/php-src/pull/12308 - not sure why this mitigates this issue |
||
| 17 | public function append(...$nodes): void |
||
| 22 | } |
||
| 23 | } |
||
| 24 | |||
| 25 | // https://github.com/php/php-src/pull/11768 |
||
| 26 | public function prepend(...$nodes): void |
||
| 33 | } |
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.