Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 4 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | public function __construct(StreamInterface $stream, $level = -1) |
||
19 | 6 | { |
|
20 | if (!extension_loaded('zlib')) { |
||
21 | 6 | throw new \RuntimeException('The zlib extension must be enabled to use this stream'); |
|
22 | 1 | } |
|
23 | |||
24 | parent::__construct($stream, ['window' => 31]); |
||
25 | 5 | ||
26 | // @deprecated will be removed in 2.0 |
||
27 | $this->writeFilterCallback = Filter\fun($this->writeFilter(), ['window' => 31, 'level' => $level]); |
||
28 | 5 | } |
|
46 |
This property has been deprecated. The supplier of the class has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the property will be removed from the class and what other property to use instead.