From d4e871f71ad7df60de014869df533796be57258b Mon Sep 17 00:00:00 2001 From: "aliaksei.bykouski" Date: Thu, 8 Sep 2022 16:36:12 +0300 Subject: [PATCH] Fix PHP 8.1 return type deprecation notices. --- src/Base64Stream.php | 2 ++ src/ChunkSplitStream.php | 2 ++ src/NonClosingStream.php | 2 ++ src/QuotedPrintableStream.php | 2 ++ src/UUStream.php | 2 ++ 5 files changed, 10 insertions(+) diff --git a/src/Base64Stream.php b/src/Base64Stream.php index 2bf2089..bf11c27 100644 --- a/src/Base64Stream.php +++ b/src/Base64Stream.php @@ -209,6 +209,7 @@ private function beforeClose() /** * Closes the underlying stream after writing out any remaining bytes * needing to be encoded. + * @return void */ public function close() { @@ -219,6 +220,7 @@ public function close() /** * Detaches the underlying stream after writing out any remaining bytes * needing to be encoded. + * @return resource|null Underlying PHP stream, if any */ public function detach() { diff --git a/src/ChunkSplitStream.php b/src/ChunkSplitStream.php index 5e7b10f..0758ed0 100644 --- a/src/ChunkSplitStream.php +++ b/src/ChunkSplitStream.php @@ -104,6 +104,7 @@ private function beforeClose() /** * Closes the stream after ensuring a final line ending character is * inserted. + * @return void */ public function close() { @@ -114,6 +115,7 @@ public function close() /** * Detaches the stream after ensuring a final line ending character is * inserted. + * @return resource|null Underlying PHP stream, if any */ public function detach() { diff --git a/src/NonClosingStream.php b/src/NonClosingStream.php index e83deac..0055fb0 100644 --- a/src/NonClosingStream.php +++ b/src/NonClosingStream.php @@ -41,6 +41,7 @@ class NonClosingStream implements StreamInterface /** * Overridden to detach the underlying stream without closing it. + * @return void */ public function close() { @@ -49,6 +50,7 @@ public function close() /** * Overridden to detach the underlying stream without closing it. + * @return resource|null Underlying PHP stream, if any */ public function detach() { diff --git a/src/QuotedPrintableStream.php b/src/QuotedPrintableStream.php index ae38763..6330af5 100644 --- a/src/QuotedPrintableStream.php +++ b/src/QuotedPrintableStream.php @@ -211,6 +211,7 @@ private function beforeClose() /** * Closes the underlying stream and writes a final CRLF if the current line * isn't empty. + * @return void */ public function close() { @@ -221,6 +222,7 @@ public function close() /** * Closes the underlying stream and writes a final CRLF if the current line * isn't empty. + * @return resource|null Underlying PHP stream, if any */ public function detach() { diff --git a/src/UUStream.php b/src/UUStream.php index f75b96d..db5d490 100644 --- a/src/UUStream.php +++ b/src/UUStream.php @@ -311,6 +311,7 @@ private function beforeClose() /** * Writes any remaining bytes out followed by the uu-encoded footer, then * closes the stream. + * @return void */ public function close() { @@ -321,6 +322,7 @@ public function close() /** * Writes any remaining bytes out followed by the uu-encoded footer, then * detaches the stream. + * @return resource|null Underlying PHP stream, if any */ public function detach() {