| 1 | <?php |
||
| 17 | class CollectionFactory extends AbstractPersistentCollectionFactory |
||
| 18 | { |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var callable |
||
| 22 | */ |
||
| 23 | protected $repositoriesFactory; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @var RepositoryService |
||
| 27 | */ |
||
| 28 | protected $repositories; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param RepositoryService $repositories |
||
|
|
|||
| 32 | */ |
||
| 33 | public function __construct(callable $repositoriesFactory) |
||
| 37 | |||
| 38 | /** |
||
| 39 | * {@inheritDoc} |
||
| 40 | * @see \Doctrine\ODM\MongoDB\PersistentCollection\AbstractPersistentCollectionFactory::createCollectionClass() |
||
| 41 | */ |
||
| 42 | protected function createCollectionClass($collectionClass) |
||
| 55 | } |
||
| 56 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function. It has, however, found a similar but not annotated parameter which might be a good fit.
Consider the following example. The parameter
$irelandis not defined by the methodfinale(...).The most likely cause is that the parameter was changed, but the annotation was not.