From: Michael Wallner Date: Wed, 16 Oct 2019 11:11:08 +0000 (+0200) Subject: suppress new PHP-7.4 notice about failed stream_write X-Git-Tag: RELEASE_3_2_2~3 X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=commitdiff_plain;h=cbfdc466d8a364445ba3389e876b7c7e7f0189b2;hp=bc73bc67034bf875cdcace2bbc569350a3acbc80 suppress new PHP-7.4 notice about failed stream_write --- diff --git a/tests/messagebody003.phpt b/tests/messagebody003.phpt index 8444cbf..52968ac 100644 --- a/tests/messagebody003.phpt +++ b/tests/messagebody003.phpt @@ -10,7 +10,7 @@ echo "Test\n"; $file = new http\Message\Body(fopen(__FILE__, "r")); try { - $file->append("nope"); + @$file->append("nope"); } catch (Exception $e) { echo $e, "\n"; }