From e4997813bf5cb2268d27f131ad7b67eedac94c27 Mon Sep 17 00:00:00 2001 From: Stefan Giehl Date: Wed, 27 Nov 2024 10:07:47 +0100 Subject: [PATCH] Correct EOL dates of PHP versions (#22803) --- core/Plugin/ControllerAdmin.php | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/core/Plugin/ControllerAdmin.php b/core/Plugin/ControllerAdmin.php index f5b797a0b30..1cdf49117dc 100644 --- a/core/Plugin/ControllerAdmin.php +++ b/core/Plugin/ControllerAdmin.php @@ -418,17 +418,20 @@ protected static function getPiwikVersion() private static function isPhpVersionEOL() { - $phpEOL = '7.3'; + $phpEOL = '8.0'; - // End of security update for certain PHP versions as of https://www.php.net/supported-versions.php - if (Date::today()->isLater(Date::factory('2022-11-28'))) { - $phpEOL = '7.4'; + // End of security update for certain PHP versions as of https://www.php.net/supported-versions + if (Date::today()->isLater(Date::factory('2025-12-31'))) { + $phpEOL = '8.1'; } - if (Date::today()->isLater(Date::factory('2023-11-26'))) { - $phpEOL = '8.0'; + if (Date::today()->isLater(Date::factory('2026-12-31'))) { + $phpEOL = '8.2'; } - if (Date::today()->isLater(Date::factory('2024-11-25'))) { - $phpEOL = '8.1'; + if (Date::today()->isLater(Date::factory('2027-12-31'))) { + $phpEOL = '8.3'; + } + if (Date::today()->isLater(Date::factory('2028-12-31'))) { + $phpEOL = '8.4'; } return version_compare(PHP_MAJOR_VERSION . '.' . PHP_MINOR_VERSION, $phpEOL, '<=');