| 1 | <?php |
||
| 33 | class PassengerInfoGroup |
||
| 34 | { |
||
| 35 | /** |
||
| 36 | * @var specificTravellerDetails |
||
| 37 | */ |
||
| 38 | public $specificTravellerDetails; |
||
| 39 | |||
| 40 | |||
| 41 | /** |
||
| 42 | * @var fareInfo |
||
| 43 | */ |
||
| 44 | public $fareInfo; |
||
| 45 | |||
| 46 | /** |
||
| 47 | * PassengersGroup constructor. |
||
| 48 | * |
||
| 49 | * @param Passenger $passenger |
||
| 50 | * @param int $group |
||
|
|
|||
| 51 | */ |
||
| 52 | public function __construct($passenger, $referenceNumber) |
||
| 60 | } |
||
| 61 |
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.