Skip to content

Commit 2968a62

Browse files
committed
Fix PHP 8.1 compatibility
1 parent 6aaff11 commit 2968a62

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.github/workflows/build.yml

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
- "7.3"
2222
- "7.4"
2323
- "8.0"
24+
- "8.1"
2425

2526
steps:
2627
- name: "Checkout"
@@ -85,6 +86,7 @@ jobs:
8586
- "7.3"
8687
- "7.4"
8788
- "8.0"
89+
- "8.1"
8890
dependencies:
8991
- "lowest"
9092
- "highest"
@@ -127,6 +129,7 @@ jobs:
127129
- "7.3"
128130
- "7.4"
129131
- "8.0"
132+
- "8.1"
130133
dependencies:
131134
- "lowest"
132135
- "highest"

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
],
88
"require": {
99
"php": "^7.1 || ^8.0",
10-
"phpstan/phpstan": "^0.12.86"
10+
"phpstan/phpstan": "^0.12.92"
1111
},
1212
"conflict": {
1313
"phpunit/phpunit": "<7.0"

tests/Rules/PHPUnit/data/assert-same-count.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function testAssertSameWithCountMethodForCountableVariableIsNotOK()
3333
}
3434

3535
class Bar implements \Countable {
36-
public function count()
36+
public function count(): int
3737
{
3838
return 1;
3939
}

0 commit comments

Comments
 (0)