Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to latest PHPStan and PHPCSFixer #17

Merged
merged 1 commit into from
Jul 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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