From a8603c658e5ae0b133afad0dd367c502f2f4cc37 Mon Sep 17 00:00:00 2001 From: Bruce Wells Date: Mon, 10 Jul 2023 15:44:39 -0400 Subject: [PATCH] Update to latest PHPStan and PHPCSFixer --- phpstan.neon | 5 ----- src/Base64Stream.php | 1 - src/CharsetStream.php | 1 - src/NonClosingStream.php | 4 ++-- src/PregReplaceFilterStream.php | 1 - src/SeekingLimitStream.php | 1 - 6 files changed, 2 insertions(+), 11 deletions(-) diff --git a/phpstan.neon b/phpstan.neon index ac5b68a..e33a026 100644 --- a/phpstan.neon +++ b/phpstan.neon @@ -5,9 +5,4 @@ parameters: paths: - src - tests - ignoreErrors: - - - message: '#::seek\(\) has no return type specified.#' - paths: - - src/* diff --git a/src/Base64Stream.php b/src/Base64Stream.php index b52b7e1..c068bb5 100644 --- a/src/Base64Stream.php +++ b/src/Base64Stream.php @@ -146,7 +146,6 @@ private function fillBuffer(int $length) : void * encoded data and is not supported. * * @param int $length - * @return string */ public function read($length) : string { diff --git a/src/CharsetStream.php b/src/CharsetStream.php index c291fb9..a1acb14 100644 --- a/src/CharsetStream.php +++ b/src/CharsetStream.php @@ -144,7 +144,6 @@ public function eof() : bool * them after converting to the target string charset. * * @param int $length - * @return string */ public function read($length) : string { diff --git a/src/NonClosingStream.php b/src/NonClosingStream.php index 77ae639..5a7f132 100644 --- a/src/NonClosingStream.php +++ b/src/NonClosingStream.php @@ -51,7 +51,7 @@ class NonClosingStream implements StreamInterface */ public function close() : void { - $this->stream = null; + $this->stream = null; // @phpstan-ignore-line } /** @@ -61,7 +61,7 @@ public function close() : void */ public function detach() { - $this->stream = null; + $this->stream = null; // @phpstan-ignore-line return null; } diff --git a/src/PregReplaceFilterStream.php b/src/PregReplaceFilterStream.php index 80621a5..4abb492 100644 --- a/src/PregReplaceFilterStream.php +++ b/src/PregReplaceFilterStream.php @@ -101,7 +101,6 @@ private function fillBuffer(int $length) : void * bytes. * * @param int $length - * @return string */ public function read($length) : string { diff --git a/src/SeekingLimitStream.php b/src/SeekingLimitStream.php index 2bd20f4..9291afc 100644 --- a/src/SeekingLimitStream.php +++ b/src/SeekingLimitStream.php @@ -178,7 +178,6 @@ public function seekAndRead(int $length) : string * 'seeked' back to its position prior to the call to read(). * * @param int $length - * @return string */ public function read($length) : string {