Conditions | 5 |
Paths | 9 |
Total Lines | 20 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
52 | public function render($context) |
||
53 | { |
||
54 | $values = array(); |
||
55 | |||
56 | foreach ($this->vars as $var) { |
||
57 | $actualRow = $this->getCell()->getActualRow(); |
||
58 | if (is_object($actualRow)) { |
||
59 | $actualRow = $actualRow->getArrayCopy(); |
||
60 | } |
||
61 | $values[] = $actualRow[$var]; |
||
62 | } |
||
63 | |||
64 | $value = vsprintf($this->template, $values); |
||
65 | |||
66 | if ($this->place == self::RESET_CONTEXT) { |
||
67 | return $value; |
||
68 | } else { |
||
69 | return ($this->place == self::PRE_CONTEXT) ? $value . $context : $context . $value; |
||
70 | } |
||
71 | } |
||
72 | } |
||
73 |
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..