Skip to content

Commit bbb65b0

Browse files
authored
refactor: fix @readonly property errors (#9529)
1 parent fa0913c commit bbb65b0

File tree

9 files changed

+1
-139
lines changed

9 files changed

+1
-139
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/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/Mimes.php

Lines changed: 0 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
{

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
{

utils/phpstan-baseline/loader.neon

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# total 3511 errors
1+
# total 3458 errors
22
includes:
33
- argument.type.neon
44
- assign.propertyType.neon
@@ -27,8 +27,6 @@ includes:
2727
- property.nonObject.neon
2828
- property.notFound.neon
2929
- property.phpDocType.neon
30-
- property.readOnlyByPhpDocAssignOutOfClass.neon
31-
- property.readOnlyByPhpDocDefaultValue.neon
3230
- staticMethod.notFound.neon
3331
- ternary.shortNotAllowed.neon
3432
- varTag.type.neon

utils/phpstan-baseline/property.readOnlyByPhpDocAssignOutOfClass.neon

Lines changed: 0 additions & 83 deletions
This file was deleted.

utils/phpstan-baseline/property.readOnlyByPhpDocDefaultValue.neon

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)