From ee01f4197954228171fdca5db3215ef0b50109fb Mon Sep 17 00:00:00 2001 From: Bernd Bestel Date: Sat, 16 Dec 2023 15:08:59 +0100 Subject: [PATCH] Support PHP 8.3, no longer support PHP 8.1 --- README.md | 4 ++-- changelog/74_UNRELEASED_xxxx-xx-xx.md | 6 +++--- composer.json | 2 +- helpers/PrerequisiteChecker.php | 7 ++++--- 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 19ecaf3c..ad3f2f59 100644 --- a/README.md +++ b/README.md @@ -47,8 +47,8 @@ See the website for more installation guides and troubleshooting help. → [h ### Platform support -- PHP 8.1 or 8.2 (with SQLite 3.34.0+) - - Required PHP extensions: `fileinfo`, `pdo_sqlite`, `gd`, `ctype`, `json`, `intl`, `zlib`, `mbstring` +- PHP 8.2 or 8.3 (with SQLite 3.34.0+) + - Required PHP extensions: `fileinfo`, `pdo_sqlite`, `gd`, `ctype`, `intl`, `zlib`, `mbstring` - _Recommendation: Benchmark tests showed that e.g. unit conversion handling is up to 5 times faster when using a more recent (3.39.4+) SQLite version._ - Recent Firefox, Chrome or Edge diff --git a/changelog/74_UNRELEASED_xxxx-xx-xx.md b/changelog/74_UNRELEASED_xxxx-xx-xx.md index e537dd12..583f473d 100644 --- a/changelog/74_UNRELEASED_xxxx-xx-xx.md +++ b/changelog/74_UNRELEASED_xxxx-xx-xx.md @@ -1,9 +1,9 @@ -> ⚠️ xxxBREAKING CHANGESxxx +> 💡 PHP 8.3 is from now on (additionally to PHP 8.2) supported. +> +> ⚠️ PHP 8.1 is no longer supported. > ❗ xxxImportant upgrade informationXXX -> 💡 xxxMinor upgrade informationXXX - ### New feature: xxxx - xxx diff --git a/composer.json b/composer.json index 5b3097f1..5f45b481 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "require": { - "php": ">=8.1", + "php": ">=8.2", "slim/slim": "^4.0", "slim/psr7": "^1.0", "slim/http": "^1.0", diff --git a/helpers/PrerequisiteChecker.php b/helpers/PrerequisiteChecker.php index da431b4b..8e12a5c5 100644 --- a/helpers/PrerequisiteChecker.php +++ b/helpers/PrerequisiteChecker.php @@ -4,12 +4,13 @@ class ERequirementNotMet extends Exception { } -const REQUIRED_PHP_EXTENSIONS = ['fileinfo', 'pdo_sqlite', 'gd', 'ctype', 'json', 'intl', 'zlib', 'mbstring', +const REQUIRED_PHP_EXTENSIONS = ['fileinfo', 'pdo_sqlite', 'gd', 'ctype', 'intl', 'zlib', 'mbstring', + // These are core extensions, so normally can't be missing, but seems to be the case, however, on FreeBSD - 'filter', 'iconv', 'tokenizer' + 'filter', 'iconv', 'tokenizer', 'json' ]; -const REQUIRED_PHP_VERSION = '8.1.0'; +const REQUIRED_PHP_VERSION = '8.2.0'; const REQUIRED_SQLITE_VERSION = '3.34.0'; class PrerequisiteChecker