| 1 | <?php |
||
| 31 | class GuzzleClient implements HTTPClient |
||
| 32 | { |
||
| 33 | /** |
||
| 34 | * @var GuzzleHttp\Client $client Guzzle instance |
||
| 35 | */ |
||
| 36 | private $client; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @var array $options Request options |
||
| 40 | */ |
||
| 41 | private $options = []; |
||
| 42 | |||
| 43 | /** |
||
| 44 | * Initializes GuzzleClient |
||
| 45 | * |
||
| 46 | * @param Client $client |
||
| 47 | */ |
||
| 48 | public function __construct(Client $client) |
||
| 52 | |||
| 53 | /** |
||
| 54 | * Execute request |
||
| 55 | * |
||
| 56 | * @param string $method GET|PUT|POST|DELETE |
||
| 57 | * @param string $url Url |
||
| 58 | * |
||
| 59 | * @return string Body GuzzleHttp\Psr7\Response |
||
| 60 | */ |
||
| 61 | public function request(string $method, string $url): Response |
||
| 65 | |||
| 66 | /** |
||
| 67 | * Set options to request |
||
| 68 | * |
||
| 69 | * @param string $optionParams Ooption params |
||
| 70 | * |
||
| 71 | * @return void |
||
| 72 | */ |
||
| 73 | public function setOptions(array $optionParams) |
||
| 77 | } |
||
| 78 |
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..