From a4a132c05612f0085ec474b499eb2dcc59eb7d56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Nikolaou?= Date: Tue, 17 Oct 2017 20:42:11 +0300 Subject: [PATCH] Remove error suppressions for `deflate_add` --- lib/ZlibOutputStream.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ZlibOutputStream.php b/lib/ZlibOutputStream.php index 7fc5585..f077460 100644 --- a/lib/ZlibOutputStream.php +++ b/lib/ZlibOutputStream.php @@ -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");