Conditions | 3 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
24 | public function buildCell(Cell $cell, array $options) |
||
25 | { |
||
26 | $property = $options['property']; |
||
27 | |||
28 | // if the column name is the same as the property name, then assume that |
||
29 | // the user has not overridden the property and, if the context is an array, |
||
30 | // access it as such. |
||
31 | if ($options['column_name'] === $options['property'] && false === is_object($cell->getContext())) { |
||
32 | $property = '[' . $property . ']'; |
||
33 | } |
||
34 | |||
35 | $cell->value = $this->accessor->getValue($cell->getContext(), $property); |
||
36 | } |
||
37 | |||
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..