Skip to content

Commit d3bd139

Browse files
committed
phpstan baseline
1 parent 9a583f2 commit d3bd139

File tree

3 files changed

+24
-14
lines changed

3 files changed

+24
-14
lines changed

utils/phpstan-baseline/codeigniter.getReassignArray.neon

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# total 9 errors
1+
# total 10 errors
22

33
parameters:
44
ignoreErrors:
@@ -35,13 +35,18 @@ parameters:
3535
-
3636
message: '#^Re\-assigning arrays to \$_GET directly is discouraged\.$#'
3737
count: 1
38-
path: ../../tests/system/Log/LoggerTest.php
38+
path: ../../tests/system/Helpers/FormHelperTest.php
3939

4040
-
4141
message: '#^Re\-assigning arrays to \$_GET directly is discouraged\.$#'
4242
count: 1
4343
path: ../../tests/system/Models/PaginateModelTest.php
4444

45+
-
46+
message: '#^Re\-assigning arrays to \$_GET directly is discouraged\.$#'
47+
count: 1
48+
path: ../../tests/system/Pager/PagerTest.php
49+
4550
-
4651
message: '#^Re\-assigning arrays to \$_GET directly is discouraged\.$#'
4752
count: 1

utils/phpstan-baseline/loader.neon

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# total 2220 errors
1+
# total 2222 errors
22

33
includes:
44
- argument.type.neon

utils/phpstan-baseline/missingType.iterableValue.neon

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# total 1336 errors
1+
# total 1337 errors
22

33
parameters:
44
ignoreErrors:
@@ -327,6 +327,11 @@ parameters:
327327
count: 1
328328
path: ../../system/Config/Services.php
329329

330+
-
331+
message: '#^Method CodeIgniter\\Config\\Services\:\:superglobals\(\) has parameter \$files with no value type specified in iterable type array\.$#'
332+
count: 1
333+
path: ../../system/Config/Services.php
334+
330335
-
331336
message: '#^Method CodeIgniter\\Config\\Services\:\:superglobals\(\) has parameter \$get with no value type specified in iterable type array\.$#'
332337
count: 1
@@ -5068,52 +5073,52 @@ parameters:
50685073
path: ../../system/View/Parser.php
50695074

50705075
-
5071-
message: '#^Method CodeIgniter\\API\\BaseTransformer@anonymous/tests/system/API/TransformerTest\.php\:313\:\:includePosts\(\) return type has no value type specified in iterable type array\.$#'
5076+
message: '#^Method CodeIgniter\\API\\BaseTransformer@anonymous/tests/system/API/TransformerTest\.php\:315\:\:includePosts\(\) return type has no value type specified in iterable type array\.$#'
50725077
count: 1
50735078
path: ../../tests/system/API/TransformerTest.php
50745079

50755080
-
5076-
message: '#^Method CodeIgniter\\API\\BaseTransformer@anonymous/tests/system/API/TransformerTest\.php\:336\:\:includePosts\(\) return type has no value type specified in iterable type array\.$#'
5081+
message: '#^Method CodeIgniter\\API\\BaseTransformer@anonymous/tests/system/API/TransformerTest\.php\:338\:\:includePosts\(\) return type has no value type specified in iterable type array\.$#'
50775082
count: 1
50785083
path: ../../tests/system/API/TransformerTest.php
50795084

50805085
-
5081-
message: '#^Method CodeIgniter\\API\\BaseTransformer@anonymous/tests/system/API/TransformerTest\.php\:362\:\:includeComments\(\) return type has no value type specified in iterable type array\.$#'
5086+
message: '#^Method CodeIgniter\\API\\BaseTransformer@anonymous/tests/system/API/TransformerTest\.php\:364\:\:includeComments\(\) return type has no value type specified in iterable type array\.$#'
50825087
count: 1
50835088
path: ../../tests/system/API/TransformerTest.php
50845089

50855090
-
5086-
message: '#^Method CodeIgniter\\API\\BaseTransformer@anonymous/tests/system/API/TransformerTest\.php\:362\:\:includePosts\(\) return type has no value type specified in iterable type array\.$#'
5091+
message: '#^Method CodeIgniter\\API\\BaseTransformer@anonymous/tests/system/API/TransformerTest\.php\:364\:\:includePosts\(\) return type has no value type specified in iterable type array\.$#'
50875092
count: 1
50885093
path: ../../tests/system/API/TransformerTest.php
50895094

50905095
-
5091-
message: '#^Method CodeIgniter\\API\\BaseTransformer@anonymous/tests/system/API/TransformerTest\.php\:394\:\:includePosts\(\) return type has no value type specified in iterable type array\.$#'
5096+
message: '#^Method CodeIgniter\\API\\BaseTransformer@anonymous/tests/system/API/TransformerTest\.php\:396\:\:includePosts\(\) return type has no value type specified in iterable type array\.$#'
50925097
count: 1
50935098
path: ../../tests/system/API/TransformerTest.php
50945099

50955100
-
5096-
message: '#^Method CodeIgniter\\API\\BaseTransformer@anonymous/tests/system/API/TransformerTest\.php\:417\:\:includePosts\(\) return type has no value type specified in iterable type array\.$#'
5101+
message: '#^Method CodeIgniter\\API\\BaseTransformer@anonymous/tests/system/API/TransformerTest\.php\:419\:\:includePosts\(\) return type has no value type specified in iterable type array\.$#'
50975102
count: 1
50985103
path: ../../tests/system/API/TransformerTest.php
50995104

51005105
-
5101-
message: '#^Method CodeIgniter\\API\\BaseTransformer@anonymous/tests/system/API/TransformerTest\.php\:445\:\:includePosts\(\) return type has no value type specified in iterable type array\.$#'
5106+
message: '#^Method CodeIgniter\\API\\BaseTransformer@anonymous/tests/system/API/TransformerTest\.php\:447\:\:includePosts\(\) return type has no value type specified in iterable type array\.$#'
51025107
count: 1
51035108
path: ../../tests/system/API/TransformerTest.php
51045109

51055110
-
5106-
message: '#^Method CodeIgniter\\API\\BaseTransformer@anonymous/tests/system/API/TransformerTest\.php\:497\:\:includePosts\(\) return type has no value type specified in iterable type array\.$#'
5111+
message: '#^Method CodeIgniter\\API\\BaseTransformer@anonymous/tests/system/API/TransformerTest\.php\:499\:\:includePosts\(\) return type has no value type specified in iterable type array\.$#'
51075112
count: 1
51085113
path: ../../tests/system/API/TransformerTest.php
51095114

51105115
-
5111-
message: '#^Method CodeIgniter\\API\\BaseTransformer@anonymous/tests/system/API/TransformerTest\.php\:556\:\:includePosts\(\) return type has no value type specified in iterable type array\.$#'
5116+
message: '#^Method CodeIgniter\\API\\BaseTransformer@anonymous/tests/system/API/TransformerTest\.php\:558\:\:includePosts\(\) return type has no value type specified in iterable type array\.$#'
51125117
count: 1
51135118
path: ../../tests/system/API/TransformerTest.php
51145119

51155120
-
5116-
message: '#^Method CodeIgniter\\API\\BaseTransformer@anonymous/tests/system/API/TransformerTest\.php\:579\:\:includePosts\(\) return type has no value type specified in iterable type array\.$#'
5121+
message: '#^Method CodeIgniter\\API\\BaseTransformer@anonymous/tests/system/API/TransformerTest\.php\:581\:\:includePosts\(\) return type has no value type specified in iterable type array\.$#'
51175122
count: 1
51185123
path: ../../tests/system/API/TransformerTest.php
51195124

0 commit comments

Comments
 (0)