| 1 | <?php |
||
| 26 | final class InvalidShaderMethodException extends \BadMethodCallException |
||
| 27 | { |
||
| 28 | /** |
||
| 29 | * InvalidComponentMethodException |
||
| 30 | * |
||
| 31 | * @param string $message |
||
| 32 | * @param string $component_method |
||
|
|
|||
| 33 | */ |
||
| 34 | 1 | public function __construct(string $message = 'null', string $shader_method = 'unknown') |
|
| 44 | } |
||
| 45 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italyis not defined by the methodfinale(...).The most likely cause is that the parameter was removed, but the annotation was not.