| 1 | <?php |
||
| 11 | class RelationsRepository |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var MetadataFactoryInterface |
||
| 15 | */ |
||
| 16 | private $metadataFactory; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @var RelationProviderProvider |
||
| 20 | */ |
||
| 21 | private $relationProvider; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param MetadataFactoryInterface $metadataFactory |
||
| 25 | * @param RelationProviderProviderInterface $relationProvider |
||
| 26 | */ |
||
| 27 | public function __construct(MetadataFactoryInterface $metadataFactory, RelationProviderProviderInterface $relationProvider) |
||
| 28 | { |
||
| 29 | $this->metadataFactory = $metadataFactory; |
||
| 30 | $this->relationProvider = $relationProvider; |
||
|
|
|||
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @param object $object |
||
| 35 | * |
||
| 36 | * @return Relation[] |
||
| 37 | */ |
||
| 38 | public function getRelations($object) |
||
| 50 | } |
||
| 51 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..