Skip to content

Commit fdcc74a

Browse files
committed
Test on latest PHP versions
1 parent 9561796 commit fdcc74a

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ jobs:
1111
fail-fast: false
1212
matrix:
1313
operating-system: ['ubuntu-latest']
14-
php-version: ['7.4', '8.0', '8.1', '8.2']
14+
php-version: ['8.1', '8.2', '8.3', '8.4']
1515
composer-version: ['composer:v2']
1616

1717
steps:
1818
- name: Checkout
19-
uses: actions/checkout@v2
19+
uses: actions/checkout@v5
2020

2121
- name: Install PHP
2222
uses: shivammathur/setup-php@v2

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323
}
2424
},
2525
"require": {
26-
"php": ">=7.4",
27-
"phpspec/phpspec": "^6.0 || ^7.0"
26+
"php": ">=8.1",
27+
"phpspec/phpspec": "^6.0 || ^7.0 || ^8.0"
2828
},
2929
"require-dev": {
30-
"phpunit/phpunit": "^9.0 || ^10.0",
30+
"phpunit/phpunit": "^9.0 || ^10.0 || ^11.0",
3131
"squizlabs/php_codesniffer": "^3.5"
3232
},
3333
"scripts": {

tests/Foo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function isFoo()
1111
{
1212
return true;
1313
}
14-
public function count()
14+
public function count(): int
1515
{
1616
return 1;
1717
}

0 commit comments

Comments
 (0)