From eb2bfa67c394f159d50b460153a17749e0eacf79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20FIDRY?= Date: Sun, 1 Oct 2023 09:01:34 +0200 Subject: [PATCH 1/2] chore: Drop support for PHP 7.4 and 8.0 Both PHP versions reached EOL and PHP 8.1 will soon too. --- .github/workflows/unit-tests.yml | 23 ++++------------------- composer.json | 3 +-- 2 files changed, 5 insertions(+), 21 deletions(-) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 5f61b545..9f32a125 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -10,32 +10,21 @@ jobs: fail-fast: false matrix: #Stable supported versions - php: ['7.4', '8.0', '8.1', '8.2'] + php: ['8.1', '8.2'] symfony: ['5.4.*', '6.2.*'] composer-flags: ['--prefer-stable'] can-fail: [false] exclude: - - php: '7.4' - symfony: '6.2.*' - - php: '8.0' + - php: '8.1' symfony: '6.2.*' include: # Lowest supported versions - - php: '7.2' + - php: '8.1' symfony: '5.4.*' composer-flags: '--prefer-stable --prefer-lowest' can-fail: false - # EOL PHP versions - - php: '7.2' - symfony: '5.4.*' - composer-flags: '--prefer-stable' - can-fail: false - - php: '7.3' - symfony: '5.4.*' - composer-flags: '--prefer-stable' - can-fail: false # Development versions - - php: '8.2' + - php: '8.3' symfony: '6.3.x-dev' composer-flags: '' can-fail: true @@ -49,10 +38,6 @@ jobs: - name: "checkout" uses: "actions/checkout@v2" - - name: "build the PHP7 environment" - run: "dev/bin/docker-compose build --build-arg PHP_VERSION=${{ matrix.php }} php" - if: startsWith(matrix.php, '7') - - name: "build the PHP8 environment" run: "dev/bin/docker-compose build --build-arg PHP_VERSION=${{ matrix.php }} --build-arg XDEBUG_VERSION='3.2.0' php" if: startsWith(matrix.php, '8') diff --git a/composer.json b/composer.json index 96f28b0a..acb20aca 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,7 @@ } ], "require": { - "php": ">=7.2", + "php": "^8.1", "doctrine/doctrine-bundle": "^2.0.8", "doctrine/orm": "^2.7.1", "league/oauth2-server": "^8.3", @@ -24,7 +24,6 @@ "psr/http-factory": "^1.0", "symfony/event-dispatcher": "^5.4|^6.2", "symfony/framework-bundle": "^5.4|^6.2", - "symfony/polyfill-php81": "^1.22", "symfony/psr-http-message-bridge": "^2.0", "symfony/security-bundle": "^5.4|^6.2" }, From 7126cae8d22b1016e9796cb81d43e24f5adb54d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Th=C3=A9o=20FIDRY?= Date: Sun, 1 Oct 2023 09:06:46 +0200 Subject: [PATCH 2/2] bump the default version of the docker image to 8.1 --- dev/docker/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/docker/Dockerfile b/dev/docker/Dockerfile index d9db2b6e..88b3fe23 100644 --- a/dev/docker/Dockerfile +++ b/dev/docker/Dockerfile @@ -1,4 +1,4 @@ -ARG PHP_VERSION=7.4 +ARG PHP_VERSION=8.1 FROM php:${PHP_VERSION}-cli-alpine LABEL maintainer="Petar Obradović "