Skip to content

Commit cafc40d

Browse files
committed
Run phplint nad phpunit on PHP 8.1
1 parent 26e931a commit cafc40d

File tree

3 files changed

+4
-15
lines changed

3 files changed

+4
-15
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
- "7.3"
2323
- "7.4"
2424
- "8.0"
25+
- "8.1"
2526

2627
steps:
2728
- name: "Checkout"
@@ -123,6 +124,7 @@ jobs:
123124
- "7.3"
124125
- "7.4"
125126
- "8.0"
127+
- "8.1"
126128
operating-system: ["ubuntu-latest", "windows-latest"]
127129

128130
steps:
@@ -144,7 +146,7 @@ jobs:
144146
restore-keys: "php-${{ matrix.php-version }}-composer-"
145147

146148
- name: "Reset composer platform"
147-
if: matrix.php-version == '7.1' || matrix.php-version == '7.2'
149+
if: matrix.php-version == '7.1' || matrix.php-version == '7.2' || matrix.php-version == '8.1'
148150
run: "composer config --unset platform"
149151

150152
- name: "Install lowest dependencies"

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"phpstan/phpstan-deprecation-rules": "1.0.0",
2525
"phpstan/phpstan-phpunit": "1.0.0",
2626
"phpstan/phpstan-strict-rules": "1.1.0",
27-
"phpunit/phpunit": "7.5.20|8.5.5|9.5.10"
27+
"phpunit/phpunit": "7.5.20|8.5.21|9.5.10"
2828
},
2929
"autoload": {
3030
"psr-4": {

tests/Sniffs/Variables/data/unusedVariableNoErrors.php

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -305,19 +305,6 @@ function ($result) {
305305
}
306306
};
307307

308-
function () {
309-
$GLOBALS = [];
310-
$_SERVER = [];
311-
$_GET = [];
312-
$_POST = [];
313-
$_FILES = [];
314-
$_COOKIE = [];
315-
$_SESSION = [];
316-
$_REQUEST = [];
317-
$_ENV = [];
318-
};
319-
320-
321308
function () {
322309
$a = 1;
323310
return get_defined_vars();

0 commit comments

Comments
 (0)