1 | <?php declare(strict_types=1); |
||
10 | final class ReadableStreamHash implements ReadableStreamInterface |
||
11 | { |
||
12 | use EventEmitterTrait; |
||
13 | |||
14 | /** |
||
15 | * @var WritableStreamInterface |
||
16 | */ |
||
17 | private $stream; |
||
18 | |||
19 | /** |
||
20 | * @var resource |
||
21 | */ |
||
22 | private $context; |
||
23 | |||
24 | /** |
||
25 | * WritableStreamHash constructor. |
||
26 | * @param WritableStreamInterface $stream |
||
27 | */ |
||
28 | 184 | public function __construct(ReadableStreamInterface $stream, string $hash, int $options = 0, string $key = '') |
|
44 | |||
45 | 184 | public function isReadable() |
|
49 | |||
50 | public function pause() |
||
54 | |||
55 | public function resume() |
||
59 | |||
60 | public function pipe(WritableStreamInterface $dest, array $options = []) |
||
64 | |||
65 | public function close() |
||
69 | } |
||
70 |
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..