Skip to content

Commit 4ed4877

Browse files
committed
CI: remove support for PHP 8.0 and 8.1
1 parent 9e05a1f commit 4ed4877

File tree

4 files changed

+8
-13
lines changed

4 files changed

+8
-13
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313

1414
strategy:
1515
matrix:
16-
php-versions: ['8.0', '8.1', '8.2', '8.3', '8.4']
16+
php-versions: ['8.2', '8.3', '8.4']
1717
fail-fast: false
1818

1919
steps:

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
],
1313
"require": {
1414
"nette/neon": "^3.4",
15-
"php": "^8.0",
16-
"squizlabs/php_codesniffer": "^3.8"
15+
"php": "^8.2",
16+
"squizlabs/php_codesniffer": "^3.13"
1717
},
1818
"require-dev": {
19-
"forrest79/phpcs": "^2.0",
19+
"forrest79/phpcs": "^2.1",
2020
"phpstan/phpstan": "^2.1",
2121
"phpstan/phpstan-strict-rules": "^2.0",
2222
"shipmonk/phpstan-rules": "^4.1"

phpstan.neon

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -221,12 +221,6 @@ parameters:
221221
count: 1
222222
path: src/PhpCsInjections.php
223223

224-
-
225-
message: '#^Result of function rewinddir \(void\) is used\.$#'
226-
identifier: function.void
227-
count: 1
228-
path: src/PhpCsInjections.php
229-
230224
-
231225
message: '#^Trying to invoke string but it might not be a callable\.$#'
232226
identifier: callable.nonCallable

src/PhpCsInjections.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,10 @@ public function dir_readdir()
8787
}
8888

8989

90-
public function dir_rewinddir(): bool
90+
public function dir_rewinddir(): true
9191
{
92-
return (bool) rewinddir($this->handle);
92+
rewinddir($this->handle);
93+
return true;
9394
}
9495

9596

@@ -220,7 +221,7 @@ public function stream_seek(int $offset, int $whence = SEEK_SET): bool
220221
}
221222

222223

223-
public function stream_set_option(int $option, int $arg1, int $arg2): bool
224+
public function stream_set_option(int $option, int $arg1, int $arg2): false
224225
{
225226
return false;
226227
}

0 commit comments

Comments
 (0)