Skip to content

Commit 3473349

Browse files
authored
fix: Remove check ext-json (#9713)
* fix: Remove check ext-json * refactor: Remove deprecated `CodeIgniter::resolvePlatformExtensions()` * docs: Update userguide * fix: Change section for docs
1 parent 4a0f3c2 commit 3473349

File tree

4 files changed

+2
-36
lines changed

4 files changed

+2
-36
lines changed

system/Boot.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,6 @@ protected static function checkMissingExtensions(): void
304304

305305
foreach ([
306306
'intl',
307-
'json',
308307
'mbstring',
309308
] as $extension) {
310309
if (! extension_loaded($extension)) {

system/CodeIgniter.php

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
use CodeIgniter\Cache\ResponseCache;
1616
use CodeIgniter\Debug\Timer;
1717
use CodeIgniter\Events\Events;
18-
use CodeIgniter\Exceptions\FrameworkException;
1918
use CodeIgniter\Exceptions\LogicException;
2019
use CodeIgniter\Exceptions\PageNotFoundException;
2120
use CodeIgniter\Filters\Filters;
@@ -192,38 +191,6 @@ public function initialize()
192191
date_default_timezone_set($this->config->appTimezone ?? 'UTC');
193192
}
194193

195-
/**
196-
* Checks system for missing required PHP extensions.
197-
*
198-
* @return void
199-
*
200-
* @throws FrameworkException
201-
*
202-
* @codeCoverageIgnore
203-
*
204-
* @deprecated 4.5.0 Moved to system/bootstrap.php.
205-
*/
206-
protected function resolvePlatformExtensions()
207-
{
208-
$requiredExtensions = [
209-
'intl',
210-
'json',
211-
'mbstring',
212-
];
213-
214-
$missingExtensions = [];
215-
216-
foreach ($requiredExtensions as $extension) {
217-
if (! extension_loaded($extension)) {
218-
$missingExtensions[] = $extension;
219-
}
220-
}
221-
222-
if ($missingExtensions !== []) {
223-
throw FrameworkException::forMissingExtension(implode(', ', $missingExtensions));
224-
}
225-
}
226-
227194
/**
228195
* Initializes Kint
229196
*

user_guide_src/source/changelogs/v4.7.0.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ Removed Deprecated Items
6464

6565
- **Text Helper:** The deprecated types in ``random_string()`` function: ``basic``, ``md5``, and ``sha1`` has been removed.
6666
- **BaseModel:** The deprecated method ``transformDataRowToArray()`` has been removed.
67+
- **CodeIgniter:** The deprecated ``CodeIgniter\CodeIgniter::resolvePlatformExtensions()`` has been removed.
6768

6869
************
6970
Enhancements

user_guide_src/source/intro/requirements.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ PHP and Required Extensions
1313
`PHP <https://www.php.net/>`_ version 8.2 or newer is required, with the following PHP extensions are enabled:
1414

1515
- `intl <https://www.php.net/manual/en/intl.requirements.php>`_
16-
- `mbstring <https://www.php.net/manual/en/mbstring.requirements.php>`_
17-
- `json <https://www.php.net/manual/en/json.requirements.php>`_
16+
- `mbstring <https://www.php.net/manual/en/mbstring.installation.php>`_
1817

1918
.. warning::
2019
- The end of life date for PHP 7.4 was November 28, 2022.

0 commit comments

Comments
 (0)