1 | <?php |
||
5 | class MethodNotAllowed extends \InvalidArgumentException implements ResponseInterface |
||
6 | { |
||
7 | /** |
||
8 | * @param string $methodName |
||
9 | * @param Exception $previous |
||
|
|||
10 | */ |
||
11 | 2 | public function __construct($methodName) |
|
16 | |||
17 | /** |
||
18 | * {@inheritdoc} |
||
19 | */ |
||
20 | 2 | public function getResponseCode() |
|
24 | } |
||
25 |
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
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.