Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
80 | public function request($uri, $method = 'GET', $options = []) |
||
81 | { |
||
82 | /** |
||
83 | * @var ResponseInterface $response |
||
84 | */ |
||
85 | $response = $this->app->httpClient->request($method, $uri, $options); |
||
86 | |||
87 | return new ResponseBag( |
||
88 | $response->getBody()->getContents(), |
||
89 | $response->getHeaders(), |
||
90 | $response->getStatusCode() |
||
91 | ); |
||
94 |
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.