Skip to content

Commit 84e06d0

Browse files
authored
Merge pull request codeigniter4#8857 from kenjis/update-phpstan-baseline
chore: update phpstan-baseline
2 parents 2530b23 + cfa7878 commit 84e06d0

File tree

2 files changed

+34
-31
lines changed

2 files changed

+34
-31
lines changed

.github/workflows/test-phpstan.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010
paths:
1111
- 'app/**.php'
1212
- 'system/**.php'
13+
- 'tests/**.php'
1314
- 'utils/**.php'
1415
- composer.json
1516
- phpstan.neon.dist
@@ -23,6 +24,7 @@ on:
2324
paths:
2425
- 'app/**.php'
2526
- 'system/**.php'
27+
- 'tests/**.php'
2628
- 'utils/**.php'
2729
- composer.json
2830
- phpstan.neon.dist

phpstan-baseline.php

Lines changed: 32 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<?php declare(strict_types = 1);
22

3+
$ignoreErrors = [];
34
$ignoreErrors[] = [
45
'message' => '#^PHPDoc type array\\<string, array\\<string, array\\<int, string\\>\\>\\> of property Config\\\\Filters\\:\\:\\$filters is not the same as PHPDoc type array of overridden property CodeIgniter\\\\Config\\\\Filters\\:\\:\\$filters\\.$#',
56
'count' => 1,
@@ -10216,12 +10217,12 @@
1021610217
'path' => __DIR__ . '/tests/system/AutoReview/FrameworkCodeTest.php',
1021710218
];
1021810219
$ignoreErrors[] = [
10219-
'message' => '#^Method CodeIgniter\\\\AutoReview\\\\FrameworkCodeTest\\:\\:provideEachTestClassHasCorrectGroupAnnotation\\(\\) return type has no value type specified in iterable type iterable\\.$#',
10220+
'message' => '#^Method CodeIgniter\\\\AutoReview\\\\FrameworkCodeTest\\:\\:provideEachTestClassHasCorrectGroupAttributeName\\(\\) return type has no value type specified in iterable type iterable\\.$#',
1022010221
'count' => 1,
1022110222
'path' => __DIR__ . '/tests/system/AutoReview/FrameworkCodeTest.php',
1022210223
];
1022310224
$ignoreErrors[] = [
10224-
'message' => '#^Property CodeIgniter\\\\AutoReview\\\\FrameworkCodeTest\\:\\:\\$recognizedGroupAnnotations type has no value type specified in iterable type array\\.$#',
10225+
'message' => '#^Property CodeIgniter\\\\AutoReview\\\\FrameworkCodeTest\\:\\:\\$recognizedGroupAttributeNames type has no value type specified in iterable type array\\.$#',
1022510226
'count' => 1,
1022610227
'path' => __DIR__ . '/tests/system/AutoReview/FrameworkCodeTest.php',
1022710228
];
@@ -10966,7 +10967,7 @@
1096610967
'path' => __DIR__ . '/tests/system/Config/FactoriesTest.php',
1096710968
];
1096810969
$ignoreErrors[] = [
10969-
'message' => '#^Property class@anonymous/tests/system/Config/FactoriesTest\\.php\\:88\\:\\:\\$widgets has no type specified\\.$#',
10970+
'message' => '#^Property class@anonymous/tests/system/Config/FactoriesTest\\.php\\:89\\:\\:\\$widgets has no type specified\\.$#',
1097010971
'count' => 1,
1097110972
'path' => __DIR__ . '/tests/system/Config/FactoriesTest.php',
1097210973
];
@@ -14071,122 +14072,122 @@
1407114072
'path' => __DIR__ . '/tests/system/Models/UpdateModelTest.php',
1407214073
];
1407314074
$ignoreErrors[] = [
14074-
'message' => '#^Property class@anonymous/tests/system/Models/UpdateModelTest\\.php\\:197\\:\\:\\$_options has no type specified\\.$#',
14075+
'message' => '#^Property class@anonymous/tests/system/Models/UpdateModelTest\\.php\\:198\\:\\:\\$_options has no type specified\\.$#',
1407514076
'count' => 1,
1407614077
'path' => __DIR__ . '/tests/system/Models/UpdateModelTest.php',
1407714078
];
1407814079
$ignoreErrors[] = [
14079-
'message' => '#^Property class@anonymous/tests/system/Models/UpdateModelTest\\.php\\:197\\:\\:\\$country has no type specified\\.$#',
14080+
'message' => '#^Property class@anonymous/tests/system/Models/UpdateModelTest\\.php\\:198\\:\\:\\$country has no type specified\\.$#',
1408014081
'count' => 1,
1408114082
'path' => __DIR__ . '/tests/system/Models/UpdateModelTest.php',
1408214083
];
1408314084
$ignoreErrors[] = [
14084-
'message' => '#^Property class@anonymous/tests/system/Models/UpdateModelTest\\.php\\:197\\:\\:\\$created_at has no type specified\\.$#',
14085+
'message' => '#^Property class@anonymous/tests/system/Models/UpdateModelTest\\.php\\:198\\:\\:\\$created_at has no type specified\\.$#',
1408514086
'count' => 1,
1408614087
'path' => __DIR__ . '/tests/system/Models/UpdateModelTest.php',
1408714088
];
1408814089
$ignoreErrors[] = [
14089-
'message' => '#^Property class@anonymous/tests/system/Models/UpdateModelTest\\.php\\:197\\:\\:\\$deleted has no type specified\\.$#',
14090+
'message' => '#^Property class@anonymous/tests/system/Models/UpdateModelTest\\.php\\:198\\:\\:\\$deleted has no type specified\\.$#',
1409014091
'count' => 1,
1409114092
'path' => __DIR__ . '/tests/system/Models/UpdateModelTest.php',
1409214093
];
1409314094
$ignoreErrors[] = [
14094-
'message' => '#^Property class@anonymous/tests/system/Models/UpdateModelTest\\.php\\:197\\:\\:\\$email has no type specified\\.$#',
14095+
'message' => '#^Property class@anonymous/tests/system/Models/UpdateModelTest\\.php\\:198\\:\\:\\$email has no type specified\\.$#',
1409514096
'count' => 1,
1409614097
'path' => __DIR__ . '/tests/system/Models/UpdateModelTest.php',
1409714098
];
1409814099
$ignoreErrors[] = [
14099-
'message' => '#^Property class@anonymous/tests/system/Models/UpdateModelTest\\.php\\:197\\:\\:\\$id has no type specified\\.$#',
14100+
'message' => '#^Property class@anonymous/tests/system/Models/UpdateModelTest\\.php\\:198\\:\\:\\$id has no type specified\\.$#',
1410014101
'count' => 1,
1410114102
'path' => __DIR__ . '/tests/system/Models/UpdateModelTest.php',
1410214103
];
1410314104
$ignoreErrors[] = [
14104-
'message' => '#^Property class@anonymous/tests/system/Models/UpdateModelTest\\.php\\:197\\:\\:\\$name has no type specified\\.$#',
14105+
'message' => '#^Property class@anonymous/tests/system/Models/UpdateModelTest\\.php\\:198\\:\\:\\$name has no type specified\\.$#',
1410514106
'count' => 1,
1410614107
'path' => __DIR__ . '/tests/system/Models/UpdateModelTest.php',
1410714108
];
1410814109
$ignoreErrors[] = [
14109-
'message' => '#^Property class@anonymous/tests/system/Models/UpdateModelTest\\.php\\:197\\:\\:\\$updated_at has no type specified\\.$#',
14110+
'message' => '#^Property class@anonymous/tests/system/Models/UpdateModelTest\\.php\\:198\\:\\:\\$updated_at has no type specified\\.$#',
1411014111
'count' => 1,
1411114112
'path' => __DIR__ . '/tests/system/Models/UpdateModelTest.php',
1411214113
];
1411314114
$ignoreErrors[] = [
14114-
'message' => '#^Property class@anonymous/tests/system/Models/UpdateModelTest\\.php\\:216\\:\\:\\$_options has no type specified\\.$#',
14115+
'message' => '#^Property class@anonymous/tests/system/Models/UpdateModelTest\\.php\\:217\\:\\:\\$_options has no type specified\\.$#',
1411514116
'count' => 1,
1411614117
'path' => __DIR__ . '/tests/system/Models/UpdateModelTest.php',
1411714118
];
1411814119
$ignoreErrors[] = [
14119-
'message' => '#^Property class@anonymous/tests/system/Models/UpdateModelTest\\.php\\:216\\:\\:\\$country has no type specified\\.$#',
14120+
'message' => '#^Property class@anonymous/tests/system/Models/UpdateModelTest\\.php\\:217\\:\\:\\$country has no type specified\\.$#',
1412014121
'count' => 1,
1412114122
'path' => __DIR__ . '/tests/system/Models/UpdateModelTest.php',
1412214123
];
1412314124
$ignoreErrors[] = [
14124-
'message' => '#^Property class@anonymous/tests/system/Models/UpdateModelTest\\.php\\:216\\:\\:\\$created_at has no type specified\\.$#',
14125+
'message' => '#^Property class@anonymous/tests/system/Models/UpdateModelTest\\.php\\:217\\:\\:\\$created_at has no type specified\\.$#',
1412514126
'count' => 1,
1412614127
'path' => __DIR__ . '/tests/system/Models/UpdateModelTest.php',
1412714128
];
1412814129
$ignoreErrors[] = [
14129-
'message' => '#^Property class@anonymous/tests/system/Models/UpdateModelTest\\.php\\:216\\:\\:\\$deleted has no type specified\\.$#',
14130+
'message' => '#^Property class@anonymous/tests/system/Models/UpdateModelTest\\.php\\:217\\:\\:\\$deleted has no type specified\\.$#',
1413014131
'count' => 1,
1413114132
'path' => __DIR__ . '/tests/system/Models/UpdateModelTest.php',
1413214133
];
1413314134
$ignoreErrors[] = [
14134-
'message' => '#^Property class@anonymous/tests/system/Models/UpdateModelTest\\.php\\:216\\:\\:\\$email has no type specified\\.$#',
14135+
'message' => '#^Property class@anonymous/tests/system/Models/UpdateModelTest\\.php\\:217\\:\\:\\$email has no type specified\\.$#',
1413514136
'count' => 1,
1413614137
'path' => __DIR__ . '/tests/system/Models/UpdateModelTest.php',
1413714138
];
1413814139
$ignoreErrors[] = [
14139-
'message' => '#^Property class@anonymous/tests/system/Models/UpdateModelTest\\.php\\:216\\:\\:\\$id has no type specified\\.$#',
14140+
'message' => '#^Property class@anonymous/tests/system/Models/UpdateModelTest\\.php\\:217\\:\\:\\$id has no type specified\\.$#',
1414014141
'count' => 1,
1414114142
'path' => __DIR__ . '/tests/system/Models/UpdateModelTest.php',
1414214143
];
1414314144
$ignoreErrors[] = [
14144-
'message' => '#^Property class@anonymous/tests/system/Models/UpdateModelTest\\.php\\:216\\:\\:\\$name has no type specified\\.$#',
14145+
'message' => '#^Property class@anonymous/tests/system/Models/UpdateModelTest\\.php\\:217\\:\\:\\$name has no type specified\\.$#',
1414514146
'count' => 1,
1414614147
'path' => __DIR__ . '/tests/system/Models/UpdateModelTest.php',
1414714148
];
1414814149
$ignoreErrors[] = [
14149-
'message' => '#^Property class@anonymous/tests/system/Models/UpdateModelTest\\.php\\:216\\:\\:\\$updated_at has no type specified\\.$#',
14150+
'message' => '#^Property class@anonymous/tests/system/Models/UpdateModelTest\\.php\\:217\\:\\:\\$updated_at has no type specified\\.$#',
1415014151
'count' => 1,
1415114152
'path' => __DIR__ . '/tests/system/Models/UpdateModelTest.php',
1415214153
];
1415314154
$ignoreErrors[] = [
14154-
'message' => '#^Property class@anonymous/tests/system/Models/UpdateModelTest\\.php\\:349\\:\\:\\$_options has no type specified\\.$#',
14155+
'message' => '#^Property class@anonymous/tests/system/Models/UpdateModelTest\\.php\\:350\\:\\:\\$_options has no type specified\\.$#',
1415514156
'count' => 1,
1415614157
'path' => __DIR__ . '/tests/system/Models/UpdateModelTest.php',
1415714158
];
1415814159
$ignoreErrors[] = [
14159-
'message' => '#^Property class@anonymous/tests/system/Models/UpdateModelTest\\.php\\:349\\:\\:\\$country has no type specified\\.$#',
14160+
'message' => '#^Property class@anonymous/tests/system/Models/UpdateModelTest\\.php\\:350\\:\\:\\$country has no type specified\\.$#',
1416014161
'count' => 1,
1416114162
'path' => __DIR__ . '/tests/system/Models/UpdateModelTest.php',
1416214163
];
1416314164
$ignoreErrors[] = [
14164-
'message' => '#^Property class@anonymous/tests/system/Models/UpdateModelTest\\.php\\:349\\:\\:\\$created_at has no type specified\\.$#',
14165+
'message' => '#^Property class@anonymous/tests/system/Models/UpdateModelTest\\.php\\:350\\:\\:\\$created_at has no type specified\\.$#',
1416514166
'count' => 1,
1416614167
'path' => __DIR__ . '/tests/system/Models/UpdateModelTest.php',
1416714168
];
1416814169
$ignoreErrors[] = [
14169-
'message' => '#^Property class@anonymous/tests/system/Models/UpdateModelTest\\.php\\:349\\:\\:\\$deleted has no type specified\\.$#',
14170+
'message' => '#^Property class@anonymous/tests/system/Models/UpdateModelTest\\.php\\:350\\:\\:\\$deleted has no type specified\\.$#',
1417014171
'count' => 1,
1417114172
'path' => __DIR__ . '/tests/system/Models/UpdateModelTest.php',
1417214173
];
1417314174
$ignoreErrors[] = [
14174-
'message' => '#^Property class@anonymous/tests/system/Models/UpdateModelTest\\.php\\:349\\:\\:\\$email has no type specified\\.$#',
14175+
'message' => '#^Property class@anonymous/tests/system/Models/UpdateModelTest\\.php\\:350\\:\\:\\$email has no type specified\\.$#',
1417514176
'count' => 1,
1417614177
'path' => __DIR__ . '/tests/system/Models/UpdateModelTest.php',
1417714178
];
1417814179
$ignoreErrors[] = [
14179-
'message' => '#^Property class@anonymous/tests/system/Models/UpdateModelTest\\.php\\:349\\:\\:\\$id has no type specified\\.$#',
14180+
'message' => '#^Property class@anonymous/tests/system/Models/UpdateModelTest\\.php\\:350\\:\\:\\$id has no type specified\\.$#',
1418014181
'count' => 1,
1418114182
'path' => __DIR__ . '/tests/system/Models/UpdateModelTest.php',
1418214183
];
1418314184
$ignoreErrors[] = [
14184-
'message' => '#^Property class@anonymous/tests/system/Models/UpdateModelTest\\.php\\:349\\:\\:\\$name has no type specified\\.$#',
14185+
'message' => '#^Property class@anonymous/tests/system/Models/UpdateModelTest\\.php\\:350\\:\\:\\$name has no type specified\\.$#',
1418514186
'count' => 1,
1418614187
'path' => __DIR__ . '/tests/system/Models/UpdateModelTest.php',
1418714188
];
1418814189
$ignoreErrors[] = [
14189-
'message' => '#^Property class@anonymous/tests/system/Models/UpdateModelTest\\.php\\:349\\:\\:\\$updated_at has no type specified\\.$#',
14190+
'message' => '#^Property class@anonymous/tests/system/Models/UpdateModelTest\\.php\\:350\\:\\:\\$updated_at has no type specified\\.$#',
1419014191
'count' => 1,
1419114192
'path' => __DIR__ . '/tests/system/Models/UpdateModelTest.php',
1419214193
];
@@ -15901,7 +15902,7 @@
1590115902
'path' => __DIR__ . '/tests/system/View/ParserTest.php',
1590215903
];
1590315904
$ignoreErrors[] = [
15904-
'message' => '#^Method class@anonymous/tests/system/View/ParserTest\\.php\\:339\\:\\:toArray\\(\\) return type has no value type specified in iterable type array\\.$#',
15905+
'message' => '#^Method class@anonymous/tests/system/View/ParserTest\\.php\\:340\\:\\:toArray\\(\\) return type has no value type specified in iterable type array\\.$#',
1590515906
'count' => 1,
1590615907
'path' => __DIR__ . '/tests/system/View/ParserTest.php',
1590715908
];
@@ -15916,17 +15917,17 @@
1591615917
'path' => __DIR__ . '/tests/system/View/ParserTest.php',
1591715918
];
1591815919
$ignoreErrors[] = [
15919-
'message' => '#^Property class@anonymous/tests/system/View/ParserTest\\.php\\:339\\:\\:\\$bar has no type specified\\.$#',
15920+
'message' => '#^Property class@anonymous/tests/system/View/ParserTest\\.php\\:340\\:\\:\\$bar has no type specified\\.$#',
1592015921
'count' => 1,
1592115922
'path' => __DIR__ . '/tests/system/View/ParserTest.php',
1592215923
];
1592315924
$ignoreErrors[] = [
15924-
'message' => '#^Property class@anonymous/tests/system/View/ParserTest\\.php\\:339\\:\\:\\$foo has no type specified\\.$#',
15925+
'message' => '#^Property class@anonymous/tests/system/View/ParserTest\\.php\\:340\\:\\:\\$foo has no type specified\\.$#',
1592515926
'count' => 1,
1592615927
'path' => __DIR__ . '/tests/system/View/ParserTest.php',
1592715928
];
1592815929
$ignoreErrors[] = [
15929-
'message' => '#^Property class@anonymous/tests/system/View/ParserTest\\.php\\:369\\:\\:\\$attributes type has no value type specified in iterable type array\\.$#',
15930+
'message' => '#^Property class@anonymous/tests/system/View/ParserTest\\.php\\:370\\:\\:\\$attributes type has no value type specified in iterable type array\\.$#',
1593015931
'count' => 1,
1593115932
'path' => __DIR__ . '/tests/system/View/ParserTest.php',
1593215933
];

0 commit comments

Comments
 (0)