diff --git a/system/Boot.php b/system/Boot.php index 5b228664146f..85b983c19d89 100644 --- a/system/Boot.php +++ b/system/Boot.php @@ -304,7 +304,6 @@ protected static function checkMissingExtensions(): void foreach ([ 'intl', - 'json', 'mbstring', ] as $extension) { if (! extension_loaded($extension)) { diff --git a/system/CodeIgniter.php b/system/CodeIgniter.php index c87ff78e8348..26a64575cc98 100644 --- a/system/CodeIgniter.php +++ b/system/CodeIgniter.php @@ -15,7 +15,6 @@ use CodeIgniter\Cache\ResponseCache; use CodeIgniter\Debug\Timer; use CodeIgniter\Events\Events; -use CodeIgniter\Exceptions\FrameworkException; use CodeIgniter\Exceptions\LogicException; use CodeIgniter\Exceptions\PageNotFoundException; use CodeIgniter\Filters\Filters; @@ -192,38 +191,6 @@ public function initialize() date_default_timezone_set($this->config->appTimezone ?? 'UTC'); } - /** - * Checks system for missing required PHP extensions. - * - * @return void - * - * @throws FrameworkException - * - * @codeCoverageIgnore - * - * @deprecated 4.5.0 Moved to system/bootstrap.php. - */ - protected function resolvePlatformExtensions() - { - $requiredExtensions = [ - 'intl', - 'json', - 'mbstring', - ]; - - $missingExtensions = []; - - foreach ($requiredExtensions as $extension) { - if (! extension_loaded($extension)) { - $missingExtensions[] = $extension; - } - } - - if ($missingExtensions !== []) { - throw FrameworkException::forMissingExtension(implode(', ', $missingExtensions)); - } - } - /** * Initializes Kint * diff --git a/user_guide_src/source/changelogs/v4.7.0.rst b/user_guide_src/source/changelogs/v4.7.0.rst index fd64911a6561..9399095c1d44 100644 --- a/user_guide_src/source/changelogs/v4.7.0.rst +++ b/user_guide_src/source/changelogs/v4.7.0.rst @@ -64,6 +64,7 @@ Removed Deprecated Items - **Text Helper:** The deprecated types in ``random_string()`` function: ``basic``, ``md5``, and ``sha1`` has been removed. - **BaseModel:** The deprecated method ``transformDataRowToArray()`` has been removed. +- **CodeIgniter:** The deprecated ``CodeIgniter\CodeIgniter::resolvePlatformExtensions()`` has been removed. ************ Enhancements diff --git a/user_guide_src/source/intro/requirements.rst b/user_guide_src/source/intro/requirements.rst index 4c956e631f0e..2de0b5c5b7d3 100644 --- a/user_guide_src/source/intro/requirements.rst +++ b/user_guide_src/source/intro/requirements.rst @@ -13,8 +13,7 @@ PHP and Required Extensions `PHP `_ version 8.2 or newer is required, with the following PHP extensions are enabled: - `intl `_ - - `mbstring `_ - - `json `_ + - `mbstring `_ .. warning:: - The end of life date for PHP 7.4 was November 28, 2022.