| 1 | <?php |
||
| 22 | class ServerException extends InvalidArgumentException implements ParserExceptionInterface |
||
| 23 | { |
||
| 24 | /** |
||
| 25 | * The exception to throw if the prefix is invalid. |
||
| 26 | * |
||
| 27 | * @param string $prefix the prefix |
||
| 28 | * @param string $message the error message |
||
| 29 | * |
||
| 30 | * @return ServerException the exception to throw |
||
| 31 | */ |
||
| 32 | 3 | public static function forInvalidPrefix($prefix, $message) |
|
| 42 | |||
| 43 | /** |
||
| 44 | * The exception to throw if a directive matcher is invalid. |
||
| 45 | * |
||
| 46 | * @param string $prefix the matcher |
||
|
|
|||
| 47 | * @param string $message the error message |
||
| 48 | * |
||
| 49 | * @return ServerException the exception to throw |
||
| 50 | */ |
||
| 51 | 12 | public static function forInvalidMatcher($matcher, $message) |
|
| 61 | } |
||
| 62 |
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.