Merge remote-tracking branch 'upstream/develop' into 4.6

This commit is contained in:
kenjis 2024-10-04 08:38:10 +09:00
commit f5b210015d
No known key found for this signature in database
GPG Key ID: BD254878922AF198
6 changed files with 7 additions and 7 deletions

View File

@ -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"

View File

@ -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 = ''
) {
}

View File

@ -26,7 +26,7 @@ class SodiumHandler extends BaseHandler
/**
* Starter key
*
* @var string
* @var string|null Null is used for buffer cleanup.
*/
protected $key = '';

View File

@ -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.

View File

@ -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 = '';

View File

@ -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