Skip to content

Commit

Permalink
Set PHP 8.1 as minimum version
Browse files Browse the repository at this point in the history
Use PHP 8.2 in Scrutinizer
GitHub actions; PHP 8.1, 8.2 and 8.3
  • Loading branch information
jasny committed Aug 28, 2024
1 parent 53536cf commit 88617f7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,13 @@ jobs:
fail-fast: false
matrix:
include:
- php: 7.4
- php: 8.1
composer: '--prefer-lowest'
desc: "Lowest versions"
- php: 7.4
coverage: '--coverage-clover /tmp/clover.xml'
- php: 8.0
- php: 8.1
- php: 8.2
coverage: '--coverage-clover /tmp/clover.xml'
- php: 8.3
name: PHP ${{ matrix.php }} ${{ matrix.desc }}

steps:
Expand All @@ -36,7 +35,7 @@ jobs:
run: composer validate

- name: Install dependencies
run: composer update --prefer-dist --no-progress --no-suggest ${{ matrix.composer }}
run: composer update --prefer-dist --no-progress ${{ matrix.composer }}

- name: Run PHPUnit
run: vendor/bin/phpunit ${{ matrix.coverage }}
Expand Down
2 changes: 1 addition & 1 deletion .scrutinizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ build:
nodes:
analysis:
environment:
php: 7.4
php: 8.2
postgresql: false
redis: false
mongodb: false
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
}
],
"require": {
"php": ">=7.4.0",
"php": ">=8.1.0",
"improved/iterable": "^0.1.4",
"jasny/immutable": "^2.1",
"nesbot/carbon": "^2.27",
Expand Down

0 comments on commit 88617f7

Please sign in to comment.