| 1 | <?php |
||
| 10 | class DetailedErrorMessage extends SimpleErrorMessage |
||
| 11 | { |
||
| 12 | /** @var string */ |
||
| 13 | private $details; |
||
| 14 | /** @return string */ |
||
| 15 | public function getDetails() { return $this->details; } |
||
| 16 | |||
| 17 | /** |
||
| 18 | * FieldError constructor. |
||
| 19 | * @Important |
||
| 20 | * @param string $error |
||
|
|
|||
| 21 | * @param string $details |
||
| 22 | */ |
||
| 23 | public function __construct($message = '', $details = '') |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @return array |
||
| 31 | */ |
||
| 32 | function jsonSerialize() |
||
| 39 | } |
||
| 40 |
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.