Skip to content

Commit

Permalink
Merge pull request #9 from alexei-bykovski/fix-PHP-8.1-deprecation-no…
Browse files Browse the repository at this point in the history
…tices

Fix PHP 8.1 return type deprecation notices.
  • Loading branch information
zbateson authored Sep 8, 2022
2 parents c54f80b + d4e871f commit 8f8ca20
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Base64Stream.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand All @@ -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()
{
Expand Down
2 changes: 2 additions & 0 deletions src/ChunkSplitStream.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ private function beforeClose()
/**
* Closes the stream after ensuring a final line ending character is
* inserted.
* @return void
*/
public function close()
{
Expand All @@ -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()
{
Expand Down
2 changes: 2 additions & 0 deletions src/NonClosingStream.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ class NonClosingStream implements StreamInterface

/**
* Overridden to detach the underlying stream without closing it.
* @return void
*/
public function close()
{
Expand All @@ -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()
{
Expand Down
2 changes: 2 additions & 0 deletions src/QuotedPrintableStream.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand All @@ -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()
{
Expand Down
2 changes: 2 additions & 0 deletions src/UUStream.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand All @@ -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()
{
Expand Down

0 comments on commit 8f8ca20

Please # to comment.