Skip to content

Commit

Permalink
Add PHP 8+ to test matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
pierredup committed Dec 12, 2023
1 parent 340ffb4 commit 77ffc3c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,14 @@ jobs:
- php: 7.2
- php: 7.3
- php: 7.4
- php: 8.0
- php: 8.1
- php: 8.2
- php: 8.3

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
/.php_cs.cache
/src/compiled.php
.idea
.phpunit.result.cache
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@
"symfony/property-access": "^2.7 | ^3.0 | ^4.0 | ^5.0"
},
"require-dev": {
"phpdocumentor/reflection-docblock": "^4.2",
"phpstan/phpdoc-parser": "^0.3.0",
"phpunit/phpunit": "^7.3",
"phpdocumentor/reflection-docblock": "*",
"phpstan/phpdoc-parser": "*",
"phpunit/phpunit": "^7.3 || ^8.4",
"phpstan/phpstan": "^0.12",
"friendsofphp/php-cs-fixer": "^2.12"
}
Expand Down
1 change: 1 addition & 0 deletions tests/Collection/SizeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public function testSize()
}));

$this->assertSame(12, size(new class implements \Countable {
#[\ReturnTypeWillChange]
public function count()
{
return 12;
Expand Down

0 comments on commit 77ffc3c

Please sign in to comment.