| 1 | <?php |
||
| 18 | class GuzzleHttpClient implements Client |
||
| 19 | { |
||
| 20 | |||
| 21 | public static function create(Endpoint $endpoint) |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @var \GuzzleHttp\Client |
||
| 32 | */ |
||
| 33 | private $client; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @var Endpoint |
||
| 37 | */ |
||
| 38 | private $endpoint; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @param ClientInterface $client |
||
| 42 | * @param Endpoint $endpoint |
||
| 43 | */ |
||
| 44 | public function __construct(ClientInterface $client, Endpoint $endpoint) |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @return Endpoint |
||
| 52 | */ |
||
| 53 | public function getEndpoint() |
||
| 57 | |||
| 58 | /** |
||
| 59 | * @param string $method |
||
| 60 | * @param string $path |
||
| 61 | * @param array $query |
||
| 62 | * @param array $postFields |
||
| 63 | * @param array $files |
||
| 64 | * @param array $headers |
||
| 65 | * @return string |
||
| 66 | */ |
||
| 67 | public function call( |
||
| 77 | } |
||
| 78 |
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.