1 | <?php |
||
16 | abstract class AbstractService implements ServiceInterface |
||
17 | { |
||
18 | /** @var Credentials */ |
||
19 | protected $credentials; |
||
20 | |||
21 | /** @var ClientInterface */ |
||
22 | protected $httpClient; |
||
23 | |||
24 | /** @var TokenStorageInterface */ |
||
25 | protected $storage; |
||
26 | |||
27 | /** @var null|string */ |
||
28 | protected $account = null; |
||
29 | |||
30 | /** |
||
31 | * @param CredentialsInterface $credentials |
||
32 | * @param ClientInterface $httpClient |
||
33 | * @param TokenStorageInterface $storage |
||
34 | * @param string $account |
||
35 | * |
||
36 | */ |
||
37 | public function __construct( |
||
48 | |||
49 | /** |
||
50 | * @param UriInterface|string $path |
||
51 | * @param UriInterface $baseApiUri |
||
52 | * |
||
53 | * @return UriInterface |
||
54 | * |
||
55 | * @throws Exception |
||
56 | */ |
||
57 | protected function determineRequestUriFromPath($path, UriInterface $baseApiUri = null) |
||
87 | |||
88 | /** |
||
89 | * Accessor to the storage adapter to be able to retrieve tokens |
||
90 | * |
||
91 | * @return TokenStorageInterface |
||
92 | */ |
||
93 | public function getStorage() |
||
97 | |||
98 | /** |
||
99 | * @return string |
||
100 | */ |
||
101 | public function service() |
||
108 | |||
109 | /** |
||
110 | * @return null|string |
||
111 | */ |
||
112 | public function account() |
||
116 | } |
||
117 |
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.