| 1 | <?php |
||
| 8 | trait CommonTrait |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @param ObjectManager $objectManager |
||
|
|
|||
| 12 | * @param string $objectName |
||
| 13 | * @param string $field |
||
| 14 | * @param \DateTime $olderThan |
||
| 15 | * |
||
| 16 | * @return int |
||
| 17 | */ |
||
| 18 | 2 | protected function removeOlderThan($objectName, $field, \DateTime $olderThan) |
|
| 35 | |||
| 36 | /** |
||
| 37 | * @param string $objectName |
||
| 38 | */ |
||
| 39 | 14 | public function stopIdGenerator($objectName) |
|
| 43 | |||
| 44 | 1 | public function restoreIdGenerator($objectName) |
|
| 48 | } |
||
| 49 |
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.