Skip to content

Commit 77ffc3c

Browse files
committed
Add PHP 8+ to test matrix
1 parent 340ffb4 commit 77ffc3c

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

.github/workflows/tests.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,14 @@ jobs:
1919
- php: 7.2
2020
- php: 7.3
2121
- php: 7.4
22+
- php: 8.0
23+
- php: 8.1
24+
- php: 8.2
25+
- php: 8.3
2226

2327
steps:
2428
- name: Checkout
25-
uses: actions/checkout@v2
29+
uses: actions/checkout@v3
2630

2731
- name: Setup PHP
2832
uses: shivammathur/setup-php@v2

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
/.php_cs.cache
55
/src/compiled.php
66
.idea
7+
.phpunit.result.cache

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
"symfony/property-access": "^2.7 | ^3.0 | ^4.0 | ^5.0"
2929
},
3030
"require-dev": {
31-
"phpdocumentor/reflection-docblock": "^4.2",
32-
"phpstan/phpdoc-parser": "^0.3.0",
33-
"phpunit/phpunit": "^7.3",
31+
"phpdocumentor/reflection-docblock": "*",
32+
"phpstan/phpdoc-parser": "*",
33+
"phpunit/phpunit": "^7.3 || ^8.4",
3434
"phpstan/phpstan": "^0.12",
3535
"friendsofphp/php-cs-fixer": "^2.12"
3636
}

tests/Collection/SizeTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ public function testSize()
2626
}));
2727

2828
$this->assertSame(12, size(new class implements \Countable {
29+
#[\ReturnTypeWillChange]
2930
public function count()
3031
{
3132
return 12;

0 commit comments

Comments
 (0)