1 | <?php |
||
18 | class HttpPlugHttpAdapterClient implements HttpClient |
||
19 | { |
||
20 | /** |
||
21 | * @var HttpMethodsClient |
||
22 | */ |
||
23 | private $adapter; |
||
24 | |||
25 | private $url; |
||
26 | |||
27 | /** |
||
28 | * @param PlugClient $adapter |
||
29 | * @param string $url |
||
30 | */ |
||
31 | public function __construct(PlugClient $adapter, $url) |
||
36 | |||
37 | /** |
||
38 | * {@inheritdoc} |
||
39 | */ |
||
40 | public function request($method, $path, array $params = []) |
||
53 | |||
54 | /** |
||
55 | * splits arguments into parameters and files (if any). |
||
56 | * |
||
57 | * @param array $params |
||
58 | * |
||
59 | * @return array |
||
60 | */ |
||
61 | private function splitParams(array $params) |
||
76 | |||
77 | /** |
||
78 | * builds the error exception. |
||
79 | * |
||
80 | * @param PlugException $e |
||
81 | * |
||
82 | * @return CommunicationException |
||
83 | */ |
||
84 | private function buildRequestError(PlugException $e) |
||
92 | |||
93 | /** |
||
94 | * @param array $params |
||
95 | * @param array $files |
||
96 | * |
||
97 | * @return StreamInterface|null |
||
98 | */ |
||
99 | private function createBody(array $params, array $files) |
||
113 | } |
||
114 |
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.