| 1 | <?php |
||
| 8 | class Evenement |
||
| 9 | { |
||
| 10 | use IdentityTrait; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * Date de l'évenement. |
||
| 14 | * |
||
| 15 | * @var Datetime|null |
||
| 16 | */ |
||
| 17 | protected $date; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Description de l'évenement. |
||
| 21 | * |
||
| 22 | * @var string |
||
| 23 | */ |
||
| 24 | protected $description; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Ajout d'un evenement à une intervention. |
||
| 28 | * |
||
| 29 | * @param SDIS62\Core\Ops\Entity\Intervention $intervention |
||
|
|
|||
| 30 | * @param string $description |
||
| 31 | * @param Datetime|string|null $date Optionnel |
||
| 32 | */ |
||
| 33 | public function __construct($description, $date = null) |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Get the value of Date de l'évenement. |
||
| 48 | * |
||
| 49 | * @return Datetime|null |
||
| 50 | */ |
||
| 51 | public function getDate() |
||
| 55 | |||
| 56 | /** |
||
| 57 | * Get the value of Description de l'évenement. |
||
| 58 | * |
||
| 59 | * @return string |
||
| 60 | */ |
||
| 61 | public function getDescription() |
||
| 65 | } |
||
| 66 |
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.