1
0
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:
Sébastien Nikolaou 2017-10-17 20:42:11 +03:00 committed by Niklas Keller
parent 8af72be249
commit a4a132c056

View File

@ -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");