Skip to content

Commit

Permalink
Added support for PHP 8.3 and dropped support for PHP 8.0 (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
frankvanhest authored Jan 26, 2024
2 parents 3164141 + 85bd339 commit 3f29fe0
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
"require": {
"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 3f29fe0

Please sign in to comment.