From 9c682c2888b667b6a2e8cdd0a2ea19f2733fad30 Mon Sep 17 00:00:00 2001 From: Victor Bocharsky Date: Mon, 18 Dec 2023 22:59:53 +0100 Subject: [PATCH] Drop legacy PHP 7.2-8.0 support (#277) * Drop legacy PHP 7.2-8.0 support * Tweak PHP constraint in composer.json * Set PHP version for lowest as 8.1.10 * Bump min version of doctrine/doctrine-bundle to 2.4 * Bump min version of doctrine/doctrine-bundle to 2.8 * Bump min version of doctrine/orm to 2.13 * Simplify CI config thanks to upstream changes * Drop redundant conflict section thanks to bumped dep version --- .github/workflows/ci.yaml | 2 ++ composer.json | 10 +++------- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 29a639a4..91b24d77 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -10,6 +10,8 @@ on: jobs: test: uses: SymfonyCasts/.github/.github/workflows/phpunit.yaml@main + with: + php-version-lowest: '8.1.10' composer-validate: uses: SymfonyCasts/.github/.github/workflows/composer-validate.yaml@main diff --git a/composer.json b/composer.json index 9ecd0dc2..1127e5f2 100644 --- a/composer.json +++ b/composer.json @@ -5,7 +5,7 @@ "license": "MIT", "minimum-stability": "dev", "require": { - "php": ">=7.2.5", + "php": ">=8.1.10", "ext-json": "*", "symfony/config": "^5.4 | ^6.0 | ^7.0", "symfony/dependency-injection": "^5.4 | ^6.0 | ^7.0", @@ -13,16 +13,12 @@ "symfony/http-kernel": "^5.4 | ^6.0 | ^7.0" }, "require-dev": { - "doctrine/orm": "^2.7", + "doctrine/orm": "^2.13", "symfony/framework-bundle": "^5.4 | ^6.0 | ^7.0", "symfony/phpunit-bridge": "^5.4 | ^6.0 | ^7.0", - "doctrine/doctrine-bundle": "^2.0.3", + "doctrine/doctrine-bundle": "^2.8", "doctrine/annotations": "^1.0" }, - "conflict": { - "php": ">=8.1 <8.1.10", - "doctrine/orm": "<2.7" - }, "autoload": { "psr-4": { "SymfonyCasts\\Bundle\\ResetPassword\\": "src/"