Skip to content

Commit

Permalink
Merge branch 'master' into dependabot/composer/phpstan/phpstan-tw-1.11
Browse files Browse the repository at this point in the history
  • Loading branch information
akrabat authored Jun 8, 2024
2 parents 39daab4 + 372e11c commit 933297f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [8.0, 8.1, 8.2]
php: [8.0, 8.1, 8.2, 8.3]
experimental: [false]
include:
- php: 8.2
Expand Down
3 changes: 2 additions & 1 deletion phpstan.neon.dist
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
parameters:
level: max
checkMissingIterableValueType: false
ignoreErrors:
- identifier: missingType.iterableValue
paths:
- src
1 change: 0 additions & 1 deletion src/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,6 @@ public function getQueryParams(): array
// Decode URL data
parse_str($this->uri->getQuery(), $this->queryParams);

// @phpstan-ignore-next-line
return is_array($this->queryParams) ? $this->queryParams : [];
}

Expand Down
2 changes: 1 addition & 1 deletion src/Stream.php
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ public function read($length): string
{
$data = false;

if ($this->isReadable() && $this->stream && $length >= 0) {
if ($this->isReadable() && $this->stream && $length > 0) {
$data = fread($this->stream, $length);
}

Expand Down

0 comments on commit 933297f

Please sign in to comment.