Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
22 | public function convert($key, $value, $direction = Modifier::DIRECTION_TO) |
||
23 | { |
||
24 | $method = 'convert'.ucfirst($direction); |
||
25 | foreach ($this->items as $modifier) { |
||
26 | if ($modifier->canHandle($value, $direction)) { |
||
27 | $this->keys = $key; |
||
|
|||
28 | return $modifier->$method($value); |
||
29 | } |
||
30 | } |
||
31 | return $value; |
||
32 | } |
||
33 | } |
||
34 |
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..