1 | <?php |
||
13 | class Transport |
||
14 | { |
||
15 | use LoggerAwareTrait; |
||
16 | |||
17 | const LIVE_PRICING = '/apiservices/pricing/v1.0'; |
||
18 | |||
19 | /** |
||
20 | * @var \GuzzleHttp\Client |
||
21 | */ |
||
22 | private $client; |
||
23 | |||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | private $pollUrl; |
||
28 | |||
29 | /** |
||
30 | * @param ClientInterface $client |
||
31 | */ |
||
32 | public function __construct(ClientInterface $client) |
||
36 | |||
37 | /** |
||
38 | * @param SessionParameters $parameters |
||
39 | * @param bool $newSession |
||
40 | * @return array |
||
41 | */ |
||
42 | public function findQuotes(SessionParameters $parameters, $newSession) |
||
50 | |||
51 | /** |
||
52 | * @param SessionParameters $parameters |
||
53 | * @throws \Exception |
||
54 | */ |
||
55 | private function createSession(SessionParameters $parameters) |
||
82 | |||
83 | /** |
||
84 | * @return array |
||
85 | */ |
||
86 | private function poll() |
||
104 | |||
105 | /** |
||
106 | * @param string $url |
||
107 | * @param string $apiKey |
||
108 | */ |
||
109 | private function setPollUrl($url, $apiKey) |
||
114 | } |
||
115 |
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.