Skip to content

Commit

Permalink
Fix PHP 8.1 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
ondrejmirtes committed Jul 20, 2021
1 parent 6aaff11 commit 2968a62
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Expand Up @@ -21,6 +21,7 @@ jobs:
- "7.3"
- "7.4"
- "8.0"
- "8.1"

steps:
- name: "Checkout"
Expand Down Expand Up @@ -85,6 +86,7 @@ jobs:
- "7.3"
- "7.4"
- "8.0"
- "8.1"
dependencies:
- "lowest"
- "highest"
Expand Down Expand Up @@ -127,6 +129,7 @@ jobs:
- "7.3"
- "7.4"
- "8.0"
- "8.1"
dependencies:
- "lowest"
- "highest"
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -7,7 +7,7 @@
],
"require": {
"php": "^7.1 || ^8.0",
"phpstan/phpstan": "^0.12.86"
"phpstan/phpstan": "^0.12.92"
},
"conflict": {
"phpunit/phpunit": "<7.0"
Expand Down
2 changes: 1 addition & 1 deletion tests/Rules/PHPUnit/data/assert-same-count.php
Expand Up @@ -33,7 +33,7 @@ public function testAssertSameWithCountMethodForCountableVariableIsNotOK()
}

class Bar implements \Countable {
public function count()
public function count(): int
{
return 1;
}
Expand Down

0 comments on commit 2968a62

Please sign in to comment.