From c93010b196f147a953a3df119dfa0d47e13ea506 Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Wed, 28 Aug 2024 13:57:31 +0200 Subject: [PATCH] [TASK] Block installations on unsupported higher PHP versions We want Composer to be able to figure out which versions of which libraries it can install on which version of PHP. To make this possible, we should only allow installations on PHP versions that we know to work. This is the v8.x backport of #691. --- CHANGELOG.md | 2 ++ composer.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 97d58097..ddbb7c78 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,8 @@ This project adheres to [Semantic Versioning](https://semver.org/). ### Changed +- Block installations on unsupported higher PHP versions (#691) + ### Deprecated ### Removed diff --git a/composer.json b/composer.json index cf15a944..049ff127 100644 --- a/composer.json +++ b/composer.json @@ -23,7 +23,7 @@ } ], "require": { - "php": ">=5.6.20", + "php": "^5.6.20 || ^7.0.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0", "ext-iconv": "*" }, "require-dev": {