| 1 | <?php |
||
| 16 | class LoaderException extends \Exception |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * The failed load name. |
||
| 20 | * |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | public $name; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Constructor. |
||
| 27 | * |
||
| 28 | * @param string $msg the message of this exception |
||
| 29 | * @param string $ch the character that produced this exception |
||
|
|
|||
| 30 | * @param int $pos the position of the character |
||
| 31 | * @param int $code the code of this error |
||
| 32 | */ |
||
| 33 | 2 | public function __construct($msg = '', $name = '', $code = 0) |
|
| 38 | } |
||
| 39 |
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.