1 | <?php |
||
25 | abstract class AbstractResource implements ResourceInterface |
||
26 | { |
||
27 | /** |
||
28 | * @var null |
||
29 | */ |
||
30 | private $client; |
||
31 | |||
32 | /** |
||
33 | * AbstractResource constructor. |
||
34 | * @param Client $client |
||
35 | */ |
||
36 | public function __construct(Client $client) |
||
40 | |||
41 | /** |
||
42 | * @return Client |
||
43 | */ |
||
44 | protected function client(): Client |
||
48 | |||
49 | /** |
||
50 | * @param Route $route |
||
51 | * @return array|mixed |
||
52 | * @throws \Exception |
||
53 | * @throws \Throwable |
||
54 | * @throws \InvalidArgumentException |
||
55 | */ |
||
56 | protected function fetch(Route $route): array |
||
83 | |||
84 | /** |
||
85 | * @param Route $route |
||
86 | * @return Observer |
||
87 | * @throws \Throwable |
||
88 | * @throws \InvalidArgumentException |
||
89 | */ |
||
90 | protected function stream(Route $route): Observer |
||
101 | |||
102 | /** |
||
103 | * @return AdapterInterface|HttpAdapter |
||
104 | * @throws \InvalidArgumentException |
||
105 | */ |
||
106 | protected function viaHttp(): HttpAdapter |
||
110 | |||
111 | /** |
||
112 | * @return AdapterInterface|StreamAdapter |
||
113 | */ |
||
114 | protected function viaStream(): StreamAdapter |
||
118 | } |
||
119 |
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..