| 1 | <?php declare(strict_types=1); |
||
| 12 | class ScriptLoader |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var ScriptParser[] |
||
| 16 | */ |
||
| 17 | private $parsers; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @param ScriptParser ...$parsers |
||
| 21 | */ |
||
| 22 | public function __construct(ScriptParser ... $parsers) |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @param Script $script |
||
| 29 | * @return Command[] |
||
| 30 | */ |
||
| 31 | public function loadScript(Script $script): array |
||
| 45 | } |
||
| 46 |
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.