From b78c73bd1fc34af368446482d09ef4f9f8ae9d2f Mon Sep 17 00:00:00 2001 From: Matthias Pigulla Date: Fri, 19 Dec 2025 19:55:59 +0100 Subject: [PATCH 1/2] Bump minimum requirements for a 2.8 release This raises minimum requirements to PHP 8.1, Symfony components with any kind of maintenance (if security only). --- .github/workflows/test.yaml | 23 ++++++++++------------- composer.json | 12 +++++++----- 2 files changed, 17 insertions(+), 18 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 1cd6311e..2f04db15 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -14,21 +14,17 @@ jobs: fail-fast: false matrix: php-version: - - '7.4' - - '8.0' - '8.1' + - '8.2' + - '8.3' + - '8.4' symfony-version: - - '4.4.*' - - '5.4.*' - - '6.4.*' - exclude: - - php-version: '7.4' - symfony-version: '6.4.*' - - php-version: '8.0' - symfony-version: '6.4.*' + - 'none' include: - - php-version: '8.2' - symfony-version: '7.0.*' + - php-version: '8.1' + symfony-version: '5.4.*' + - php-version: '8.1' + symfony-version: '6.4.*' steps: - name: Checkout uses: actions/checkout@v6 @@ -45,7 +41,8 @@ jobs: run: composer validate --no-check-lock - name: Configure Symfony version - run: composer require --no-update "symfony/config:${{ matrix.symfony-version }}" "symfony/dependency-injection:${{ matrix.symfony-version }}" + run: composer require --no-update "symfony/config:${{ matrix.symfony-version }}" "symfony/dependency-injection:${{ matrix.symfony-version }}" "symfony/event-dispatcher:${{ matrix.symfony-version }}" + if: matrix.symfony-version != 'none' - name: Install dependencies run: composer install --prefer-dist --no-progress diff --git a/composer.json b/composer.json index 242a8853..d48b46fb 100644 --- a/composer.json +++ b/composer.json @@ -21,16 +21,18 @@ ], "homepage": "https://github.com/FriendsOfBehat/MinkExtension#readme", "require": { - "php": "^7.4 || ^8", + "php": "^8.1", "behat/behat": "^3.0.5", "behat/mink": "^1.5", - "symfony/config": "^4.4 || ^5.0 || ^6.0 || ^7.0", - "symfony/deprecation-contracts": "^1.0 || ^2.0 || ^3.0" + "symfony/config": "^5.4 || ^6.4 || ^7.3", + "symfony/dependency-injection": "^5.4 || ^6.4 || ^7.3", + "symfony/deprecation-contracts": "^1.0 || ^2.0 || ^3.0", + "symfony/event-dispatcher": "^5.4 || ^6.4 || ^7.3" }, "require-dev": { "behat/mink-goutte-driver": "^1.1 || ^2.0", - "phpspec/phpspec": "^6.0 || ^7.0 || 7.1.x-dev", - "mink/webdriver-classic-driver": "^1.0@dev" + "phpspec/phpspec": "^7.0 || ^8.0", + "mink/webdriver-classic-driver": "^1.0" }, "replace": { "behat/mink-extension": "self.version" From 2d227301b31c80c2448f276a06331dba48be9f24 Mon Sep 17 00:00:00 2001 From: Matthias Pigulla Date: Wed, 14 Jan 2026 19:03:40 +0100 Subject: [PATCH 2/2] Run PHP 8.1 only expressively with particular Symfony versions --- .github/workflows/test.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 2f04db15..0daff91f 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -14,7 +14,6 @@ jobs: fail-fast: false matrix: php-version: - - '8.1' - '8.2' - '8.3' - '8.4'