mirror of
https://github.com/codeigniter4/CodeIgniter4.git
synced 2025-02-20 11:44:28 +08:00
Merge remote-tracking branch 'upstream/develop' into 4.6
This commit is contained in:
commit
f5b210015d
@ -28,7 +28,7 @@
|
||||
"phpunit/phpcov": "^9.0.2 || ^10.0",
|
||||
"phpunit/phpunit": "^10.5.16 || ^11.2",
|
||||
"predis/predis": "^1.1 || ^2.0",
|
||||
"rector/rector": "1.2.5"
|
||||
"rector/rector": "1.2.6"
|
||||
},
|
||||
"replace": {
|
||||
"codeigniter4/framework": "self.version"
|
||||
|
@ -36,7 +36,7 @@ final class AutoRouteCollector
|
||||
private readonly string $defaultMethod,
|
||||
private readonly array $httpMethods,
|
||||
private readonly array $protectedControllers,
|
||||
private string $prefix = ''
|
||||
private readonly string $prefix = ''
|
||||
) {
|
||||
}
|
||||
|
||||
|
@ -26,7 +26,7 @@ class SodiumHandler extends BaseHandler
|
||||
/**
|
||||
* Starter key
|
||||
*
|
||||
* @var string
|
||||
* @var string|null Null is used for buffer cleanup.
|
||||
*/
|
||||
protected $key = '';
|
||||
|
||||
|
@ -41,7 +41,7 @@ class SiteURI extends URI
|
||||
/**
|
||||
* The Index File.
|
||||
*/
|
||||
private string $indexPage;
|
||||
private readonly string $indexPage;
|
||||
|
||||
/**
|
||||
* List of URI segments in baseURL and indexPage.
|
||||
|
@ -1611,7 +1611,7 @@ class RouteCollection implements RouteCollectionInterface
|
||||
private function getMethodParams(string $from): string
|
||||
{
|
||||
preg_match_all('/\(.+?\)/', $from, $matches);
|
||||
$count = is_countable($matches[0]) ? count($matches[0]) : 0;
|
||||
$count = count($matches[0]);
|
||||
|
||||
$params = '';
|
||||
|
||||
|
@ -334,14 +334,14 @@ Set the following property to ``true`` in **app/Config/Optimize.php**::
|
||||
|
||||
public bool $configCacheEnabled = true;
|
||||
|
||||
Since v4.5.0, you can enable this with the ``spark optimize`` command.
|
||||
Or you can enable this with the ``spark optimize`` command.
|
||||
|
||||
.. note::
|
||||
This property cannot be overridden by
|
||||
:ref:`environment variables <configuration-classes-and-environment-variables>`.
|
||||
|
||||
.. note::
|
||||
Prior to v4.5.0, uncomment the following code in **public/index.php**::
|
||||
In v4.4.x, uncomment the following code in **public/index.php**::
|
||||
|
||||
--- a/public/index.php
|
||||
+++ b/public/index.php
|
||||
|
Loading…
x
Reference in New Issue
Block a user