From 6235cf4a3953313fcad27fbf29d85dc881a587d7 Mon Sep 17 00:00:00 2001 From: Stephan Zeidler Date: Wed, 29 May 2024 17:53:45 +0200 Subject: [PATCH 1/3] Require PHP >= 8.3 by default New projects should start with PHP 8.3 now. Force people to start with PHP 8.3 now, even though they might need to change the default DDEV PHP version. --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 35822f437..6d9a72250 100644 --- a/composer.json +++ b/composer.json @@ -21,7 +21,7 @@ "packagist.org": false }, "require": { - "php": ">=8.2", + "php": ">=8.3", "composer/installers": "^2.1", "cweagans/composer-patches": "^1.7", "drupal/core-composer-scaffold": "^10.2.0", From 625ee224b068e12b34e3766ac9c2daa56ae3422e Mon Sep 17 00:00:00 2001 From: Stephan Zeidler Date: Wed, 29 May 2024 17:56:55 +0200 Subject: [PATCH 2/3] Run CI with PHP 8.3 When we force Composer to use PHP >= we can only run the CI with this versions (or workaround it) --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index af182d933..1853b7008 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,14 +15,14 @@ jobs: strategy: fail-fast: false matrix: - php-versions: ['8.2'] + php-versions: ['8.3'] drupal-release: ['stable'] composer-channel: ['stable'] include: - - php-versions: '8.2' + - php-versions: '8.3' drupal-release: dev composer-channel: stable - - php-versions: '8.2' + - php-versions: '8.3' drupal-release: stable composer-channel: snapshot steps: From 6ce6705b9d1199f9dac33f7f86ade2da2b67afdf Mon Sep 17 00:00:00 2001 From: Stephan Zeidler Date: Thu, 13 Jun 2024 10:36:59 +0200 Subject: [PATCH 3/3] Add composer PHP platform config --- composer.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/composer.json b/composer.json index 6d9a72250..074e0b476 100644 --- a/composer.json +++ b/composer.json @@ -42,6 +42,9 @@ "minimum-stability": "dev", "prefer-stable": true, "config": { + "platform":{ + "php": "8.3" + }, "discard-changes": true, "sort-packages": true, "allow-plugins": {