Conditions | 4 |
Paths | 3 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
39 | public function getState(Request $request) |
||
40 | { |
||
41 | $state = new FilterState(); |
||
42 | $value = $request->get($this->getRequestField()); |
||
43 | |||
44 | if (isset($value) && $value !== '') { |
||
45 | $value = is_array($value) ? array_values($value) : $value; |
||
46 | $state->setActive(true); |
||
47 | $state->setValue($value); |
||
48 | $state->setUrlParameters([$this->getRequestField() => $value]); |
||
49 | } |
||
50 | |||
51 | return $state; |
||
52 | } |
||
53 | |||
94 |
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..