From a736dc0aa6cce2f73b14940ea5760cd6da881058 Mon Sep 17 00:00:00 2001 From: Anatoly Nekhay Date: Fri, 4 Dec 2020 14:03:50 +0500 Subject: [PATCH] fix for php8 --- tests/StreamTest.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tests/StreamTest.php b/tests/StreamTest.php index 341a774..268d727 100644 --- a/tests/StreamTest.php +++ b/tests/StreamTest.php @@ -1,4 +1,4 @@ -handle = \fopen('php://memory', 'r+b'); } - protected function tearDown() + protected function tearDown() : void { - if (\is_resource($this->handle)) - { + if (\is_resource($this->handle)) { \fclose($this->handle); } }