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