Conditions | 1 |
Paths | 1 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
82 | public function createClient(): ClientInterface |
||
83 | { |
||
84 | $client = new Client([ |
||
85 | 'base_uri' => static::BASE_URI, |
||
86 | 'headers' => [ |
||
87 | 'Authorization' => 'Bearer '.$this->getToken(), |
||
88 | 'Accept' => 'application/json', |
||
89 | 'Content-Type' => 'application/json', |
||
90 | ], |
||
91 | ]); |
||
92 | |||
93 | return $client; |
||
94 | } |
||
95 | |||
106 |
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..