Skip to content

Commit d043f4a

Browse files
authored
Merge pull request #7869 from kenjis/add-immutable-to-config
docs: add @immutable to Config classes that do not extend BaseConfig
2 parents bb0cd96 + b9efbfc commit d043f4a

File tree

5 files changed

+12
-0
lines changed

5 files changed

+12
-0
lines changed

app/Config/Autoload.php

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

app/Config/DocTypes.php

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

33
namespace Config;
44

5+
/**
6+
* @immutable
7+
*/
58
class DocTypes
69
{
710
/**

app/Config/ForeignCharacters.php

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

55
use CodeIgniter\Config\ForeignCharacters as BaseForeignCharacters;
66

7+
/**
8+
* @immutable
9+
*/
710
class ForeignCharacters extends BaseForeignCharacters
811
{
912
}

app/Config/Mimes.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
*
1616
* When working with mime types, please make sure you have the ´fileinfo´
1717
* extension enabled to reliably detect the media types.
18+
*
19+
* @immutable
1820
*/
1921
class Mimes
2022
{

app/Config/Modules.php

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

0 commit comments

Comments
 (0)