Skip to content

Commit

Permalink
Update to latest PHPStan and PHPCSFixer
Browse files Browse the repository at this point in the history
  • Loading branch information
phpfui committed Jul 10, 2023
1 parent 783b034 commit a8603c6
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 11 deletions.
5 changes: 0 additions & 5 deletions phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,4 @@ parameters:
paths:
- src
- tests
ignoreErrors:
-
message: '#::seek\(\) has no return type specified.#'
paths:
- src/*

1 change: 0 additions & 1 deletion src/Base64Stream.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
1 change: 0 additions & 1 deletion src/CharsetStream.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down
4 changes: 2 additions & 2 deletions src/NonClosingStream.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class NonClosingStream implements StreamInterface
*/
public function close() : void
{
$this->stream = null;
$this->stream = null; // @phpstan-ignore-line
}

/**
Expand All @@ -61,7 +61,7 @@ public function close() : void
*/
public function detach()
{
$this->stream = null;
$this->stream = null; // @phpstan-ignore-line

return null;
}
Expand Down
1 change: 0 additions & 1 deletion src/PregReplaceFilterStream.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ private function fillBuffer(int $length) : void
* bytes.
*
* @param int $length
* @return string
*/
public function read($length) : string
{
Expand Down
1 change: 0 additions & 1 deletion src/SeekingLimitStream.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit a8603c6

Please sign in to comment.