| Conditions | 3 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 44 | protected function getAttribute($object, $item, array $arguments = [], $type = \Twig_TemplateInterface::ANY_CALL, $isDefinedTest = false, $ignoreStrictCheck = false) |
||
| 45 | { |
||
| 46 | $attribute = parent::getAttribute($object, $item, $arguments, $type, $isDefinedTest); |
||
| 47 | |||
| 48 | if (self::$recorder && is_object($object)) { |
||
| 49 | self::$recorder->add($object); |
||
| 50 | } |
||
| 51 | |||
| 52 | return $attribute; |
||
| 53 | } |
||
| 54 | } |
||
| 55 |
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..