Skip to content

Commit 55227e6

Browse files
committed
Patch framework (v4.6.0 => v4.6.3)
1 parent 6a90352 commit 55227e6

File tree

14 files changed

+26
-28
lines changed

14 files changed

+26
-28
lines changed

app/Config/Autoload.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
*
1818
* NOTE: This class is required prior to Autoloader instantiation,
1919
* and does not extend BaseConfig.
20-
*
21-
* @immutable
2220
*/
2321
class Autoload extends AutoloadConfig
2422
{

app/Config/Cache.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ class Cache extends BaseConfig
7878
* Your file storage preferences can be specified below, if you are using
7979
* the File driver.
8080
*
81-
* @var array<string, int|string|null>
81+
* @var array{storePath?: string, mode?: int}
8282
*/
8383
public array $file = [
8484
'storePath' => WRITEPATH . 'cache/',
@@ -95,7 +95,7 @@ class Cache extends BaseConfig
9595
*
9696
* @see https://codeigniter.com/user_guide/libraries/caching.html#memcached
9797
*
98-
* @var array<string, bool|int|string>
98+
* @var array{host?: string, port?: int, weight?: int, raw?: bool}
9999
*/
100100
public array $memcached = [
101101
'host' => '127.0.0.1',
@@ -108,10 +108,11 @@ class Cache extends BaseConfig
108108
* -------------------------------------------------------------------------
109109
* Redis settings
110110
* -------------------------------------------------------------------------
111+
*
111112
* Your Redis server can be specified below, if you are using
112113
* the Redis or Predis drivers.
113114
*
114-
* @var array<string, int|string|null>
115+
* @var array{host?: string, password?: string|null, port?: int, timeout?: int, database?: int}
115116
*/
116117
public array $redis = [
117118
'host' => '127.0.0.1',

app/Config/Cookie.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class Cookie extends BaseConfig
8585
* (empty string) means default SameSite attribute set by browsers (`Lax`)
8686
* will be set on cookies. If set to `None`, `$secure` must also be set.
8787
*
88-
* @phpstan-var 'None'|'Lax'|'Strict'|''
88+
* @var ''|'Lax'|'None'|'Strict'
8989
*/
9090
public string $samesite = 'Lax';
9191

app/Config/DocTypes.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22

33
namespace Config;
44

5-
/**
6-
* @immutable
7-
*/
85
class DocTypes
96
{
107
/**

app/Config/Filters.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,10 @@ class Filters extends BaseFilters
6565
* List of filter aliases that are always
6666
* applied before and after every request.
6767
*
68-
* @var array<string, array<string, array<string, string>>>|array<string, list<string>>
68+
* @var array{
69+
* before: array<string, array{except: list<string>|string}>|list<string>,
70+
* after: array<string, array{except: list<string>|string}>|list<string>
71+
* }
6972
*/
7073
public array $globals = [
7174
'before' => [

app/Config/Logger.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use CodeIgniter\Config\BaseConfig;
66
use CodeIgniter\Log\Handlers\FileHandler;
7+
use CodeIgniter\Log\Handlers\HandlerInterface;
78

89
class Logger extends BaseConfig
910
{
@@ -73,7 +74,7 @@ class Logger extends BaseConfig
7374
* Handlers are executed in the order defined in this array, starting with
7475
* the handler on top and continuing down.
7576
*
76-
* @var array<class-string, array<string, int|list<string>|string>>
77+
* @var array<class-string<HandlerInterface>, array<string, int|list<string>|string>>
7778
*/
7879
public array $handlers = [
7980
/*

app/Config/Mimes.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
namespace Config;
44

55
/**
6-
* Mimes
7-
*
86
* This file contains an array of mime types. It is used by the
97
* Upload class to help identify allowed file types.
108
*
@@ -15,8 +13,6 @@
1513
*
1614
* When working with mime types, please make sure you have the ´fileinfo´
1715
* extension enabled to reliably detect the media types.
18-
*
19-
* @immutable
2016
*/
2117
class Mimes
2218
{
@@ -482,6 +478,8 @@ class Mimes
482478
'application/sla',
483479
'application/vnd.ms-pki.stl',
484480
'application/x-navistyle',
481+
'model/stl',
482+
'application/octet-stream',
485483
],
486484
];
487485

app/Config/Modules.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
*
1010
* NOTE: This class is required prior to Autoloader instantiation,
1111
* and does not extend BaseConfig.
12-
*
13-
* @immutable
1412
*/
1513
class Modules extends BaseModules
1614
{

app/Config/Optimize.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
*
88
* NOTE: This class does not extend BaseConfig for performance reasons.
99
* So you cannot replace the property values with Environment Variables.
10-
*
11-
* @immutable
1210
*/
1311
class Optimize
1412
{

app/Config/Paths.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
*
1616
* NOTE: This class is required prior to Autoloader instantiation,
1717
* and does not extend BaseConfig.
18-
*
19-
* @immutable
2018
*/
2119
class Paths
2220
{

0 commit comments

Comments
 (0)