mirror of
https://github.com/danog/byte-stream.git
synced 2024-11-30 04:19:23 +01:00
Remove error suppressions for deflate_add
This commit is contained in:
parent
8af72be249
commit
a4a132c056
@ -39,7 +39,7 @@ final class ZlibOutputStream implements OutputStream {
|
||||
throw new ClosedException("The stream has already been closed");
|
||||
}
|
||||
|
||||
$compressed = @\deflate_add($this->resource, $data, \ZLIB_SYNC_FLUSH);
|
||||
$compressed = \deflate_add($this->resource, $data, \ZLIB_SYNC_FLUSH);
|
||||
|
||||
if ($compressed === false) {
|
||||
throw new StreamException("Failed adding data to deflate context");
|
||||
@ -61,7 +61,7 @@ final class ZlibOutputStream implements OutputStream {
|
||||
throw new ClosedException("The stream has already been closed");
|
||||
}
|
||||
|
||||
$compressed = @\deflate_add($this->resource, $finalData, \ZLIB_FINISH);
|
||||
$compressed = \deflate_add($this->resource, $finalData, \ZLIB_FINISH);
|
||||
|
||||
if ($compressed === false) {
|
||||
throw new StreamException("Failed adding data to deflate context");
|
||||
|
Loading…
Reference in New Issue
Block a user