Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
23 | public function setHeaders(array $headers) |
||
24 | { |
||
25 | // All headers must be case sensitive |
||
26 | $headersLower = new \stdClass(); |
||
27 | foreach ($headers as $name => $value) { |
||
28 | $nameLower = strtolower($name); |
||
29 | $headersLower->$nameLower = $value; |
||
30 | } |
||
31 | $this->headers = $headersLower; |
||
32 | } |
||
33 | |||
92 |
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..