1 | <?php |
||
24 | class UnauthorizedManageMemberException extends UnauthorizedHttpException |
||
25 | { |
||
26 | /** |
||
27 | * Constructor. |
||
28 | * @param string $message error message |
||
|
|||
29 | * @param int $code error code |
||
30 | * @param \Exception $previous The previous exception used for the exception chaining. |
||
31 | */ |
||
32 | public function __construct($code = 0, \Exception $previous = null) |
||
36 | |||
37 | public function getName() |
||
41 | } |
||
42 |
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.