Skip to content

Commit

Permalink
Added support for PHP 8.3 and dropped support for PHP 8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
frankvanhest committed Jan 26, 2024
1 parent bb3e3e4 commit 85bd339
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
fail-fast: true
matrix:
php: [8.0, 8.1, 8.2]
php: [8.1, 8.2, 8.3]
composer-flags: [ '' ]
stability: ['prefer-lowest', 'prefer-stable']
experimental: [false]
Expand Down
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
}
],
"require": {
"php": "~8.0.0 | ~8.1.0 | ~8.2.0",
"php": "~8.1.0 | ~8.2.0 | ~8.3.0",
"nikic/php-parser": "^v4.15",
"phpstan/phpstan": "^1.9"
"phpstan/phpstan": "^1.10"
},
"require-dev": {
"infection/infection": "^0.26",
"infection/infection": "^0.27",
"phpunit/phpunit": "^9.5.5",
"roave/security-advisories": "dev-latest"
},
Expand Down
14 changes: 7 additions & 7 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,5 @@
version: "3.7"
services:
php80:
build: ./docker/php80/
volumes:
- .:/var/www/html
- ./docker/php80/conf.d/xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
- ./docker/php80/conf.d/error_reporting.ini:/usr/local/etc/php/conf.d/error_reporting.ini

php81:
build: ./docker/php81/
volumes:
Expand All @@ -20,3 +13,10 @@ services:
- .:/var/www/html
- ./docker/php82/conf.d/xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
- ./docker/php82/conf.d/error_reporting.ini:/usr/local/etc/php/conf.d/error_reporting.ini

php83:
build: ./docker/php83/
volumes:
- .:/var/www/html
- ./docker/php83/conf.d/xdebug.ini:/usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini
- ./docker/php83/conf.d/error_reporting.ini:/usr/local/etc/php/conf.d/error_reporting.ini
2 changes: 1 addition & 1 deletion docker/php80/Dockerfile → docker/php83/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM php:8.0-cli
FROM php:8.3-cli

RUN apt-get update && \
apt-get install -y --no-install-recommends git libzip-dev zip unzip \
Expand Down
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions run-tests.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/usr/bin/env sh

echo 'RUN tests in PHP 8.0'
/usr/bin/env docker-compose run php80 /var/www/html/docker/run-tests.sh

echo 'RUN tests in PHP 8.1'
/usr/bin/env docker-compose run php81 /var/www/html/docker/run-tests.sh

echo 'RUN tests in PHP 8.2'
/usr/bin/env docker-compose run php81 /var/www/html/docker/run-tests.sh
/usr/bin/env docker-compose run php82 /var/www/html/docker/run-tests.sh

echo 'RUN tests in PHP 8.3'
/usr/bin/env docker-compose run php83 /var/www/html/docker/run-tests.sh

0 comments on commit 85bd339

Please sign in to comment.