1 | <?php |
||
13 | class Auth extends Client implements ClientInterface |
||
14 | { |
||
15 | |||
16 | /** |
||
17 | * @var Cache |
||
18 | */ |
||
19 | protected $cache; |
||
20 | |||
21 | /** |
||
22 | * @var Client |
||
23 | */ |
||
24 | protected $client; |
||
25 | |||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | protected $token; |
||
30 | |||
31 | /** |
||
32 | * @var AuthStrategyInterface |
||
33 | */ |
||
34 | protected $authStrategy; |
||
35 | |||
36 | /** |
||
37 | * Auth constructor. |
||
38 | * |
||
39 | * @param ClientInterface $clientInterface |
||
40 | * @param AuthStrategyInterface $authStrategy |
||
41 | */ |
||
42 | public function __construct(ClientInterface $clientInterface, AuthStrategyInterface $authStrategy) |
||
49 | |||
50 | /** |
||
51 | * @param string $method |
||
52 | * @param null $uri |
||
53 | * @param array $options |
||
54 | * |
||
55 | * @return mixed|\Psr\Http\Message\ResponseInterface |
||
56 | * @throws \Exception |
||
57 | */ |
||
58 | public function request($method, $uri = null, array $options = []) |
||
71 | } |
||
72 |
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.