| 1 | <?php |
||
| 10 | class Exception extends \Exception implements ExceptionInterface |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * Creates a new exception using a format and values. |
||
| 14 | * |
||
| 15 | * @param string $format The format. |
||
| 16 | * @param mixed $value,... The value(s). |
||
|
|
|||
| 17 | * |
||
| 18 | * @return Exception The exception. |
||
| 19 | */ |
||
| 20 | public static function create($format, $value = null) |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Creates an exception for the last error message. |
||
| 31 | * |
||
| 32 | * @return Exception The exception. |
||
| 33 | */ |
||
| 34 | public static function lastError() |
||
| 40 | } |
||
| 41 |
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.