1 | <?php declare(strict_types=1); |
||
24 | abstract class AbstractResource implements ResourceInterface |
||
25 | { |
||
26 | /** |
||
27 | * @var null |
||
28 | */ |
||
29 | private $client; |
||
30 | |||
31 | /** |
||
32 | * AbstractResource constructor. |
||
33 | * @param Client $client |
||
34 | */ |
||
35 | public function __construct(Client $client) |
||
39 | |||
40 | /** |
||
41 | * @return Client |
||
42 | */ |
||
43 | protected function client(): Client |
||
47 | |||
48 | /** |
||
49 | * @param Route $route |
||
50 | * @return array|mixed |
||
51 | * @throws \GuzzleHttp\Exception\ClientException |
||
52 | * @throws \GuzzleHttp\Exception\RequestException |
||
53 | * @throws \Throwable |
||
54 | * @throws \Exception |
||
55 | * @throws \RuntimeException |
||
56 | * @throws \InvalidArgumentException |
||
57 | */ |
||
58 | protected function fetch(Route $route): array |
||
94 | |||
95 | /** |
||
96 | * @param Route $route |
||
97 | * @return Observer |
||
98 | * @throws \Throwable |
||
99 | * @throws \InvalidArgumentException |
||
100 | */ |
||
101 | protected function stream(Route $route): Observer |
||
112 | |||
113 | /** |
||
114 | * @return AdapterInterface|HttpAdapter |
||
115 | */ |
||
116 | protected function viaHttp(): HttpAdapter |
||
120 | |||
121 | /** |
||
122 | * @return AdapterInterface|StreamAdapter |
||
123 | */ |
||
124 | protected function viaStream(): StreamAdapter |
||
128 | } |
||
129 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..