| 1 | <?php |
||
| 5 | class AllFailedException extends \RuntimeException |
||
| 6 | { |
||
| 7 | private $reasons; |
||
| 8 | |||
| 9 | /** |
||
| 10 | * Constructor. |
||
| 11 | * @param string $message Dummy. |
||
| 12 | * @param int $code Dummy. |
||
| 13 | * @param mixed $value Value to be retrived. |
||
|
|
|||
| 14 | */ |
||
| 15 | 3 | public function __construct($message, $code, $reasons) |
|
| 20 | |||
| 21 | /** |
||
| 22 | * Get value. |
||
| 23 | * @return mixed |
||
| 24 | */ |
||
| 25 | 3 | public function getReasons() |
|
| 29 | } |
||
| 30 |
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.