From f5e1d15a10f54885e49d6790dcbb33e2ea35422e Mon Sep 17 00:00:00 2001 From: Felix Becker Date: Mon, 24 Oct 2016 23:12:40 +0200 Subject: [PATCH] Make PHP shut up about socket notices --- src/ProtocolStreamWriter.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ProtocolStreamWriter.php b/src/ProtocolStreamWriter.php index cee9b60..a0169e2 100644 --- a/src/ProtocolStreamWriter.php +++ b/src/ProtocolStreamWriter.php @@ -30,7 +30,7 @@ class ProtocolStreamWriter implements ProtocolWriter $totalBytesWritten = 0; while ($totalBytesWritten < $msgSize) { - $bytesWritten = fwrite($this->output, substr($data, $totalBytesWritten)); + $bytesWritten = @fwrite($this->output, substr($data, $totalBytesWritten)); $totalBytesWritten += $bytesWritten; } }