| 1 | <?php |
||
| 11 | abstract class Alert { |
||
| 12 | |||
| 13 | public $type; |
||
| 14 | public $message; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Cria uma nova mensagem |
||
| 18 | * @param string $type |
||
| 19 | * @param string $message |
||
| 20 | */ |
||
| 21 | public function __construct($type, $message) { |
||
| 26 | |||
| 27 | public function __toString() { |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Carrega o html do alerta |
||
| 33 | * @param Alert $alert |
||
|
|
|||
| 34 | */ |
||
| 35 | public function toHtml() { |
||
| 39 | |||
| 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.