Skip to content

Commit f5b2100

Browse files
committed
Merge remote-tracking branch 'upstream/develop' into 4.6
2 parents a6374de + 118c2c4 commit f5b2100

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"phpunit/phpcov": "^9.0.2 || ^10.0",
2929
"phpunit/phpunit": "^10.5.16 || ^11.2",
3030
"predis/predis": "^1.1 || ^2.0",
31-
"rector/rector": "1.2.5"
31+
"rector/rector": "1.2.6"
3232
},
3333
"replace": {
3434
"codeigniter4/framework": "self.version"

system/Commands/Utilities/Routes/AutoRouterImproved/AutoRouteCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function __construct(
3636
private readonly string $defaultMethod,
3737
private readonly array $httpMethods,
3838
private readonly array $protectedControllers,
39-
private string $prefix = ''
39+
private readonly string $prefix = ''
4040
) {
4141
}
4242

system/Encryption/Handlers/SodiumHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class SodiumHandler extends BaseHandler
2626
/**
2727
* Starter key
2828
*
29-
* @var string
29+
* @var string|null Null is used for buffer cleanup.
3030
*/
3131
protected $key = '';
3232

system/HTTP/SiteURI.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class SiteURI extends URI
4141
/**
4242
* The Index File.
4343
*/
44-
private string $indexPage;
44+
private readonly string $indexPage;
4545

4646
/**
4747
* List of URI segments in baseURL and indexPage.

system/Router/RouteCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1611,7 +1611,7 @@ private function processArrayCallableSyntax(string $from, array $to): string
16111611
private function getMethodParams(string $from): string
16121612
{
16131613
preg_match_all('/\(.+?\)/', $from, $matches);
1614-
$count = is_countable($matches[0]) ? count($matches[0]) : 0;
1614+
$count = count($matches[0]);
16151615

16161616
$params = '';
16171617

user_guide_src/source/concepts/factories.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -334,14 +334,14 @@ Set the following property to ``true`` in **app/Config/Optimize.php**::
334334

335335
public bool $configCacheEnabled = true;
336336

337-
Since v4.5.0, you can enable this with the ``spark optimize`` command.
337+
Or you can enable this with the ``spark optimize`` command.
338338

339339
.. note::
340340
This property cannot be overridden by
341341
:ref:`environment variables <configuration-classes-and-environment-variables>`.
342342

343343
.. note::
344-
Prior to v4.5.0, uncomment the following code in **public/index.php**::
344+
In v4.4.x, uncomment the following code in **public/index.php**::
345345

346346
--- a/public/index.php
347347
+++ b/public/index.php

0 commit comments

Comments
 (0)