| 1 | <?php |
||
| 11 | class ExcludeWeekendConstraint implements RecurrenceConstraintInterface |
||
| 12 | { |
||
| 13 | |||
| 14 | /** |
||
| 15 | * @param Recurrence $recurrence |
||
| 16 | * @param \Datetime $datetime |
||
| 17 | * @return \Datetime |
||
| 18 | */ |
||
| 19 | public function apply(Recurrence $recurrence, \Datetime $datetime) |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param \Datetime $date |
||
|
|
|||
| 32 | * @return bool |
||
| 33 | */ |
||
| 34 | private function isWeekend($datetime) { |
||
| 37 | } |
||
| 38 |
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.