Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
1 | <?php |
||
38 | public function getRelations($object) |
||
39 | { |
||
40 | $relations = array(); |
||
41 | |||
42 | if (null !== $classMetadata = $this->metadataFactory->getMetadataForClass(get_class($object))) { |
||
43 | $relations = array_merge($relations, $classMetadata->getRelations()); |
||
44 | } |
||
45 | |||
46 | $relations = array_merge($relations, $this->relationProvider->getRelations($object)); |
||
47 | |||
48 | return $relations; |
||
49 | } |
||
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..