| 1 | <?php |
||
| 7 | trait CommonTrait |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @param \Doctrine\ODM\MongoDB\DocumentManager $documentManager |
||
|
|
|||
| 11 | * @param string $objectName |
||
| 12 | * @param string $field |
||
| 13 | * @param \DateTime $olderThan |
||
| 14 | * |
||
| 15 | * @return int |
||
| 16 | */ |
||
| 17 | 1 | protected function removeOlderThan(EntityManager $entityManager, $objectName, $field, \DateTime $olderThan) |
|
| 28 | } |
||
| 29 |
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.