Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
58 | public function request($method, $uri = null, array $options = []) |
||
59 | { |
||
60 | |||
61 | $optionForToken = [ |
||
62 | 'headers' => [ |
||
63 | 'Authorization' => (string)$this->authStrategy->authenticate(), |
||
64 | ], |
||
65 | ]; |
||
66 | |||
67 | $options = array_merge($options, $optionForToken); |
||
68 | |||
69 | return $this->client->request($method, $uri, $options); |
||
70 | } |
||
71 | } |
||
72 |
Our type inference engine has found a suspicous assignment of a value to a property. This check raises an issue when a value that can be of a given class or a super-class is assigned to a property that is type hinted more strictly.
Either this assignment is in error or an instanceof check should be added for that assignment.