Skip to content

Commit 4e5bf5a

Browse files
committed
chore: update phpstan-baseline.php
1 parent a0600be commit 4e5bf5a

File tree

1 file changed

+3
-243
lines changed

1 file changed

+3
-243
lines changed

phpstan-baseline.php

Lines changed: 3 additions & 243 deletions
Original file line numberDiff line numberDiff line change
@@ -296,11 +296,6 @@
296296
'count' => 1,
297297
'path' => __DIR__ . '/system/BaseModel.php',
298298
];
299-
$ignoreErrors[] = [
300-
'message' => '#^Property CodeIgniter\\\\BaseModel\\:\\:\\$allowedFields type has no value type specified in iterable type array\\.$#',
301-
'count' => 1,
302-
'path' => __DIR__ . '/system/BaseModel.php',
303-
];
304299
$ignoreErrors[] = [
305300
'message' => '#^Property CodeIgniter\\\\BaseModel\\:\\:\\$beforeDelete type has no value type specified in iterable type array\\.$#',
306301
'count' => 1,
@@ -331,16 +326,6 @@
331326
'count' => 1,
332327
'path' => __DIR__ . '/system/BaseModel.php',
333328
];
334-
$ignoreErrors[] = [
335-
'message' => '#^Property CodeIgniter\\\\BaseModel\\:\\:\\$validationMessages type has no value type specified in iterable type array\\.$#',
336-
'count' => 1,
337-
'path' => __DIR__ . '/system/BaseModel.php',
338-
];
339-
$ignoreErrors[] = [
340-
'message' => '#^Property CodeIgniter\\\\BaseModel\\:\\:\\$validationRules type has no value type specified in iterable type array\\.$#',
341-
'count' => 1,
342-
'path' => __DIR__ . '/system/BaseModel.php',
343-
];
344329
$ignoreErrors[] = [
345330
'message' => '#^Strict comparison using \\!\\=\\= between mixed and null will always evaluate to true\\.$#',
346331
'count' => 1,
@@ -2231,16 +2216,6 @@
22312216
'count' => 1,
22322217
'path' => __DIR__ . '/system/Config/Factory.php',
22332218
];
2234-
$ignoreErrors[] = [
2235-
'message' => '#^Property CodeIgniter\\\\Config\\\\Routing\\:\\:\\$moduleRoutes type has no value type specified in iterable type array\\.$#',
2236-
'count' => 1,
2237-
'path' => __DIR__ . '/system/Config/Routing.php',
2238-
];
2239-
$ignoreErrors[] = [
2240-
'message' => '#^Property CodeIgniter\\\\Config\\\\Routing\\:\\:\\$routeFiles type has no value type specified in iterable type array\\.$#',
2241-
'count' => 1,
2242-
'path' => __DIR__ . '/system/Config/Routing.php',
2243-
];
22442219
$ignoreErrors[] = [
22452220
'message' => '#^Accessing offset \'SERVER_PROTOCOL\' directly on \\$_SERVER is discouraged\\.$#',
22462221
'count' => 1,
@@ -2322,7 +2297,7 @@
23222297
'path' => __DIR__ . '/system/Controller.php',
23232298
];
23242299
$ignoreErrors[] = [
2325-
'message' => '#^Property CodeIgniter\\\\Controller\\:\\:\\$helpers type has no value type specified in iterable type array\\.$#',
2300+
'message' => '#^Property CodeIgniter\\\\Controller\\:\\:\\$request \\(CodeIgniter\\\\HTTP\\\\CLIRequest\\|CodeIgniter\\\\HTTP\\\\IncomingRequest\\) does not accept CodeIgniter\\\\HTTP\\\\RequestInterface\\.$#',
23262301
'count' => 1,
23272302
'path' => __DIR__ . '/system/Controller.php',
23282303
];
@@ -4731,11 +4706,6 @@
47314706
'count' => 1,
47324707
'path' => __DIR__ . '/system/Database/Seeder.php',
47334708
];
4734-
$ignoreErrors[] = [
4735-
'message' => '#^Method CodeIgniter\\\\Database\\\\Seeder\\:\\:run\\(\\) should return mixed but return statement is missing\\.$#',
4736-
'count' => 1,
4737-
'path' => __DIR__ . '/system/Database/Seeder.php',
4738-
];
47394709
$ignoreErrors[] = [
47404710
'message' => '#^Construct empty\\(\\) is not allowed\\. Use more strict comparison\\.$#',
47414711
'count' => 1,
@@ -5767,7 +5737,7 @@
57675737
'path' => __DIR__ . '/system/Filters/Filters.php',
57685738
];
57695739
$ignoreErrors[] = [
5770-
'message' => '#^Only booleans are allowed in a negated boolean, array given\\.$#',
5740+
'message' => '#^Only booleans are allowed in a negated boolean, array\\<string, array\\<string, array\\<int, string\\>\\>\\> given\\.$#',
57715741
'count' => 1,
57725742
'path' => __DIR__ . '/system/Filters/Filters.php',
57735743
];
@@ -6171,11 +6141,6 @@
61716141
'count' => 1,
61726142
'path' => __DIR__ . '/system/HTTP/ContentSecurityPolicy.php',
61736143
];
6174-
$ignoreErrors[] = [
6175-
'message' => '#^Method CodeIgniter\\\\HTTP\\\\ContentSecurityPolicy\\:\\:addOption\\(\\) has parameter \\$options with no value type specified in iterable type array\\.$#',
6176-
'count' => 1,
6177-
'path' => __DIR__ . '/system/HTTP/ContentSecurityPolicy.php',
6178-
];
61796144
$ignoreErrors[] = [
61806145
'message' => '#^Method CodeIgniter\\\\HTTP\\\\ContentSecurityPolicy\\:\\:addPluginType\\(\\) has parameter \\$mime with no value type specified in iterable type array\\.$#',
61816146
'count' => 1,
@@ -8216,11 +8181,6 @@
82168181
'count' => 1,
82178182
'path' => __DIR__ . '/system/RESTful/BaseResource.php',
82188183
];
8219-
$ignoreErrors[] = [
8220-
'message' => '#^PHPDoc type CodeIgniter\\\\HTTP\\\\CLIRequest\\|CodeIgniter\\\\HTTP\\\\IncomingRequest of property CodeIgniter\\\\RESTful\\\\BaseResource\\:\\:\\$request is not the same as PHPDoc type CodeIgniter\\\\HTTP\\\\RequestInterface of overridden property CodeIgniter\\\\Controller\\:\\:\\$request\\.$#',
8221-
'count' => 1,
8222-
'path' => __DIR__ . '/system/RESTful/BaseResource.php',
8223-
];
82248184
$ignoreErrors[] = [
82258185
'message' => '#^Method CodeIgniter\\\\RESTful\\\\ResourceController\\:\\:fail\\(\\) has parameter \\$messages with no value type specified in iterable type array\\.$#',
82268186
'count' => 1,
@@ -9161,101 +9121,6 @@
91619121
'count' => 1,
91629122
'path' => __DIR__ . '/system/Superglobals.php',
91639123
];
9164-
$ignoreErrors[] = [
9165-
'message' => '#^Method CodeIgniter\\\\Test\\\\CIDatabaseTestCase\\:\\:clearInsertCache\\(\\) has no return type specified\\.$#',
9166-
'count' => 1,
9167-
'path' => __DIR__ . '/system/Test/CIDatabaseTestCase.php',
9168-
];
9169-
$ignoreErrors[] = [
9170-
'message' => '#^Method CodeIgniter\\\\Test\\\\CIDatabaseTestCase\\:\\:dontSeeInDatabase\\(\\) has no return type specified\\.$#',
9171-
'count' => 1,
9172-
'path' => __DIR__ . '/system/Test/CIDatabaseTestCase.php',
9173-
];
9174-
$ignoreErrors[] = [
9175-
'message' => '#^Method CodeIgniter\\\\Test\\\\CIDatabaseTestCase\\:\\:dontSeeInDatabase\\(\\) has parameter \\$where with no value type specified in iterable type array\\.$#',
9176-
'count' => 1,
9177-
'path' => __DIR__ . '/system/Test/CIDatabaseTestCase.php',
9178-
];
9179-
$ignoreErrors[] = [
9180-
'message' => '#^Method CodeIgniter\\\\Test\\\\CIDatabaseTestCase\\:\\:grabFromDatabase\\(\\) has parameter \\$where with no value type specified in iterable type array\\.$#',
9181-
'count' => 1,
9182-
'path' => __DIR__ . '/system/Test/CIDatabaseTestCase.php',
9183-
];
9184-
$ignoreErrors[] = [
9185-
'message' => '#^Method CodeIgniter\\\\Test\\\\CIDatabaseTestCase\\:\\:hasInDatabase\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#',
9186-
'count' => 1,
9187-
'path' => __DIR__ . '/system/Test/CIDatabaseTestCase.php',
9188-
];
9189-
$ignoreErrors[] = [
9190-
'message' => '#^Method CodeIgniter\\\\Test\\\\CIDatabaseTestCase\\:\\:loadDependencies\\(\\) has no return type specified\\.$#',
9191-
'count' => 1,
9192-
'path' => __DIR__ . '/system/Test/CIDatabaseTestCase.php',
9193-
];
9194-
$ignoreErrors[] = [
9195-
'message' => '#^Method CodeIgniter\\\\Test\\\\CIDatabaseTestCase\\:\\:migrateDatabase\\(\\) has no return type specified\\.$#',
9196-
'count' => 1,
9197-
'path' => __DIR__ . '/system/Test/CIDatabaseTestCase.php',
9198-
];
9199-
$ignoreErrors[] = [
9200-
'message' => '#^Method CodeIgniter\\\\Test\\\\CIDatabaseTestCase\\:\\:regressDatabase\\(\\) has no return type specified\\.$#',
9201-
'count' => 1,
9202-
'path' => __DIR__ . '/system/Test/CIDatabaseTestCase.php',
9203-
];
9204-
$ignoreErrors[] = [
9205-
'message' => '#^Method CodeIgniter\\\\Test\\\\CIDatabaseTestCase\\:\\:resetMigrationSeedCount\\(\\) has no return type specified\\.$#',
9206-
'count' => 1,
9207-
'path' => __DIR__ . '/system/Test/CIDatabaseTestCase.php',
9208-
];
9209-
$ignoreErrors[] = [
9210-
'message' => '#^Method CodeIgniter\\\\Test\\\\CIDatabaseTestCase\\:\\:runSeeds\\(\\) has no return type specified\\.$#',
9211-
'count' => 1,
9212-
'path' => __DIR__ . '/system/Test/CIDatabaseTestCase.php',
9213-
];
9214-
$ignoreErrors[] = [
9215-
'message' => '#^Method CodeIgniter\\\\Test\\\\CIDatabaseTestCase\\:\\:seeInDatabase\\(\\) has no return type specified\\.$#',
9216-
'count' => 1,
9217-
'path' => __DIR__ . '/system/Test/CIDatabaseTestCase.php',
9218-
];
9219-
$ignoreErrors[] = [
9220-
'message' => '#^Method CodeIgniter\\\\Test\\\\CIDatabaseTestCase\\:\\:seeInDatabase\\(\\) has parameter \\$where with no value type specified in iterable type array\\.$#',
9221-
'count' => 1,
9222-
'path' => __DIR__ . '/system/Test/CIDatabaseTestCase.php',
9223-
];
9224-
$ignoreErrors[] = [
9225-
'message' => '#^Method CodeIgniter\\\\Test\\\\CIDatabaseTestCase\\:\\:seeNumRecords\\(\\) has no return type specified\\.$#',
9226-
'count' => 1,
9227-
'path' => __DIR__ . '/system/Test/CIDatabaseTestCase.php',
9228-
];
9229-
$ignoreErrors[] = [
9230-
'message' => '#^Method CodeIgniter\\\\Test\\\\CIDatabaseTestCase\\:\\:seeNumRecords\\(\\) has parameter \\$where with no value type specified in iterable type array\\.$#',
9231-
'count' => 1,
9232-
'path' => __DIR__ . '/system/Test/CIDatabaseTestCase.php',
9233-
];
9234-
$ignoreErrors[] = [
9235-
'message' => '#^Method CodeIgniter\\\\Test\\\\CIDatabaseTestCase\\:\\:seed\\(\\) has no return type specified\\.$#',
9236-
'count' => 1,
9237-
'path' => __DIR__ . '/system/Test/CIDatabaseTestCase.php',
9238-
];
9239-
$ignoreErrors[] = [
9240-
'message' => '#^Method CodeIgniter\\\\Test\\\\CIDatabaseTestCase\\:\\:setUpDatabase\\(\\) has no return type specified\\.$#',
9241-
'count' => 1,
9242-
'path' => __DIR__ . '/system/Test/CIDatabaseTestCase.php',
9243-
];
9244-
$ignoreErrors[] = [
9245-
'message' => '#^Method CodeIgniter\\\\Test\\\\CIDatabaseTestCase\\:\\:setUpMigrate\\(\\) has no return type specified\\.$#',
9246-
'count' => 1,
9247-
'path' => __DIR__ . '/system/Test/CIDatabaseTestCase.php',
9248-
];
9249-
$ignoreErrors[] = [
9250-
'message' => '#^Method CodeIgniter\\\\Test\\\\CIDatabaseTestCase\\:\\:setUpSeed\\(\\) has no return type specified\\.$#',
9251-
'count' => 1,
9252-
'path' => __DIR__ . '/system/Test/CIDatabaseTestCase.php',
9253-
];
9254-
$ignoreErrors[] = [
9255-
'message' => '#^Method CodeIgniter\\\\Test\\\\CIDatabaseTestCase\\:\\:tearDownDatabase\\(\\) has no return type specified\\.$#',
9256-
'count' => 1,
9257-
'path' => __DIR__ . '/system/Test/CIDatabaseTestCase.php',
9258-
];
92599124
$ignoreErrors[] = [
92609125
'message' => '#^Method CodeIgniter\\\\Test\\\\CIUnitTestCase\\:\\:assertCloseEnough\\(\\) has no return type specified\\.$#',
92619126
'count' => 1,
@@ -9317,7 +9182,7 @@
93179182
'path' => __DIR__ . '/system/Test/CIUnitTestCase.php',
93189183
];
93199184
$ignoreErrors[] = [
9320-
'message' => '#^Property CodeIgniter\\\\Test\\\\CIUnitTestCase\\:\\:\\$seed type has no value type specified in iterable type array\\.$#',
9185+
'message' => '#^Property CodeIgniter\\\\Test\\\\CIUnitTestCase\\:\\:\\$seed \\(array\\<int, class\\-string\\<CodeIgniter\\\\Database\\\\Seeder\\>\\>\\|class\\-string\\<CodeIgniter\\\\Database\\\\Seeder\\>\\) does not accept default value of type string\\.$#',
93219186
'count' => 1,
93229187
'path' => __DIR__ . '/system/Test/CIUnitTestCase.php',
93239188
];
@@ -9326,16 +9191,6 @@
93269191
'count' => 1,
93279192
'path' => __DIR__ . '/system/Test/CIUnitTestCase.php',
93289193
];
9329-
$ignoreErrors[] = [
9330-
'message' => '#^Property CodeIgniter\\\\Test\\\\CIUnitTestCase\\:\\:\\$setUpMethods type has no value type specified in iterable type array\\.$#',
9331-
'count' => 1,
9332-
'path' => __DIR__ . '/system/Test/CIUnitTestCase.php',
9333-
];
9334-
$ignoreErrors[] = [
9335-
'message' => '#^Property CodeIgniter\\\\Test\\\\CIUnitTestCase\\:\\:\\$tearDownMethods type has no value type specified in iterable type array\\.$#',
9336-
'count' => 1,
9337-
'path' => __DIR__ . '/system/Test/CIUnitTestCase.php',
9338-
];
93399194
$ignoreErrors[] = [
93409195
'message' => '#^Property CodeIgniter\\\\Test\\\\CIUnitTestCase\\:\\:\\$traits type has no value type specified in iterable type array\\.$#',
93419196
'count' => 1,
@@ -9461,51 +9316,16 @@
94619316
'count' => 1,
94629317
'path' => __DIR__ . '/system/Test/FeatureTestCase.php',
94639318
];
9464-
$ignoreErrors[] = [
9465-
'message' => '#^Method CodeIgniter\\\\Test\\\\FeatureTestCase\\:\\:clearInsertCache\\(\\) has no return type specified\\.$#',
9466-
'count' => 1,
9467-
'path' => __DIR__ . '/system/Test/FeatureTestCase.php',
9468-
];
94699319
$ignoreErrors[] = [
94709320
'message' => '#^Method CodeIgniter\\\\Test\\\\FeatureTestCase\\:\\:delete\\(\\) has parameter \\$params with no value type specified in iterable type array\\.$#',
94719321
'count' => 1,
94729322
'path' => __DIR__ . '/system/Test/FeatureTestCase.php',
94739323
];
9474-
$ignoreErrors[] = [
9475-
'message' => '#^Method CodeIgniter\\\\Test\\\\FeatureTestCase\\:\\:dontSeeInDatabase\\(\\) has no return type specified\\.$#',
9476-
'count' => 1,
9477-
'path' => __DIR__ . '/system/Test/FeatureTestCase.php',
9478-
];
9479-
$ignoreErrors[] = [
9480-
'message' => '#^Method CodeIgniter\\\\Test\\\\FeatureTestCase\\:\\:dontSeeInDatabase\\(\\) has parameter \\$where with no value type specified in iterable type array\\.$#',
9481-
'count' => 1,
9482-
'path' => __DIR__ . '/system/Test/FeatureTestCase.php',
9483-
];
94849324
$ignoreErrors[] = [
94859325
'message' => '#^Method CodeIgniter\\\\Test\\\\FeatureTestCase\\:\\:get\\(\\) has parameter \\$params with no value type specified in iterable type array\\.$#',
94869326
'count' => 1,
94879327
'path' => __DIR__ . '/system/Test/FeatureTestCase.php',
94889328
];
9489-
$ignoreErrors[] = [
9490-
'message' => '#^Method CodeIgniter\\\\Test\\\\FeatureTestCase\\:\\:grabFromDatabase\\(\\) has parameter \\$where with no value type specified in iterable type array\\.$#',
9491-
'count' => 1,
9492-
'path' => __DIR__ . '/system/Test/FeatureTestCase.php',
9493-
];
9494-
$ignoreErrors[] = [
9495-
'message' => '#^Method CodeIgniter\\\\Test\\\\FeatureTestCase\\:\\:hasInDatabase\\(\\) has parameter \\$data with no value type specified in iterable type array\\.$#',
9496-
'count' => 1,
9497-
'path' => __DIR__ . '/system/Test/FeatureTestCase.php',
9498-
];
9499-
$ignoreErrors[] = [
9500-
'message' => '#^Method CodeIgniter\\\\Test\\\\FeatureTestCase\\:\\:loadDependencies\\(\\) has no return type specified\\.$#',
9501-
'count' => 1,
9502-
'path' => __DIR__ . '/system/Test/FeatureTestCase.php',
9503-
];
9504-
$ignoreErrors[] = [
9505-
'message' => '#^Method CodeIgniter\\\\Test\\\\FeatureTestCase\\:\\:migrateDatabase\\(\\) has no return type specified\\.$#',
9506-
'count' => 1,
9507-
'path' => __DIR__ . '/system/Test/FeatureTestCase.php',
9508-
];
95099329
$ignoreErrors[] = [
95109330
'message' => '#^Method CodeIgniter\\\\Test\\\\FeatureTestCase\\:\\:options\\(\\) has parameter \\$params with no value type specified in iterable type array\\.$#',
95119331
'count' => 1,
@@ -9531,71 +9351,11 @@
95319351
'count' => 1,
95329352
'path' => __DIR__ . '/system/Test/FeatureTestCase.php',
95339353
];
9534-
$ignoreErrors[] = [
9535-
'message' => '#^Method CodeIgniter\\\\Test\\\\FeatureTestCase\\:\\:regressDatabase\\(\\) has no return type specified\\.$#',
9536-
'count' => 1,
9537-
'path' => __DIR__ . '/system/Test/FeatureTestCase.php',
9538-
];
9539-
$ignoreErrors[] = [
9540-
'message' => '#^Method CodeIgniter\\\\Test\\\\FeatureTestCase\\:\\:resetMigrationSeedCount\\(\\) has no return type specified\\.$#',
9541-
'count' => 1,
9542-
'path' => __DIR__ . '/system/Test/FeatureTestCase.php',
9543-
];
9544-
$ignoreErrors[] = [
9545-
'message' => '#^Method CodeIgniter\\\\Test\\\\FeatureTestCase\\:\\:runSeeds\\(\\) has no return type specified\\.$#',
9546-
'count' => 1,
9547-
'path' => __DIR__ . '/system/Test/FeatureTestCase.php',
9548-
];
9549-
$ignoreErrors[] = [
9550-
'message' => '#^Method CodeIgniter\\\\Test\\\\FeatureTestCase\\:\\:seeInDatabase\\(\\) has no return type specified\\.$#',
9551-
'count' => 1,
9552-
'path' => __DIR__ . '/system/Test/FeatureTestCase.php',
9553-
];
9554-
$ignoreErrors[] = [
9555-
'message' => '#^Method CodeIgniter\\\\Test\\\\FeatureTestCase\\:\\:seeInDatabase\\(\\) has parameter \\$where with no value type specified in iterable type array\\.$#',
9556-
'count' => 1,
9557-
'path' => __DIR__ . '/system/Test/FeatureTestCase.php',
9558-
];
9559-
$ignoreErrors[] = [
9560-
'message' => '#^Method CodeIgniter\\\\Test\\\\FeatureTestCase\\:\\:seeNumRecords\\(\\) has no return type specified\\.$#',
9561-
'count' => 1,
9562-
'path' => __DIR__ . '/system/Test/FeatureTestCase.php',
9563-
];
9564-
$ignoreErrors[] = [
9565-
'message' => '#^Method CodeIgniter\\\\Test\\\\FeatureTestCase\\:\\:seeNumRecords\\(\\) has parameter \\$where with no value type specified in iterable type array\\.$#',
9566-
'count' => 1,
9567-
'path' => __DIR__ . '/system/Test/FeatureTestCase.php',
9568-
];
9569-
$ignoreErrors[] = [
9570-
'message' => '#^Method CodeIgniter\\\\Test\\\\FeatureTestCase\\:\\:seed\\(\\) has no return type specified\\.$#',
9571-
'count' => 1,
9572-
'path' => __DIR__ . '/system/Test/FeatureTestCase.php',
9573-
];
95749354
$ignoreErrors[] = [
95759355
'message' => '#^Method CodeIgniter\\\\Test\\\\FeatureTestCase\\:\\:setRequestBody\\(\\) has parameter \\$params with no value type specified in iterable type array\\.$#',
95769356
'count' => 1,
95779357
'path' => __DIR__ . '/system/Test/FeatureTestCase.php',
95789358
];
9579-
$ignoreErrors[] = [
9580-
'message' => '#^Method CodeIgniter\\\\Test\\\\FeatureTestCase\\:\\:setUpDatabase\\(\\) has no return type specified\\.$#',
9581-
'count' => 1,
9582-
'path' => __DIR__ . '/system/Test/FeatureTestCase.php',
9583-
];
9584-
$ignoreErrors[] = [
9585-
'message' => '#^Method CodeIgniter\\\\Test\\\\FeatureTestCase\\:\\:setUpMigrate\\(\\) has no return type specified\\.$#',
9586-
'count' => 1,
9587-
'path' => __DIR__ . '/system/Test/FeatureTestCase.php',
9588-
];
9589-
$ignoreErrors[] = [
9590-
'message' => '#^Method CodeIgniter\\\\Test\\\\FeatureTestCase\\:\\:setUpSeed\\(\\) has no return type specified\\.$#',
9591-
'count' => 1,
9592-
'path' => __DIR__ . '/system/Test/FeatureTestCase.php',
9593-
];
9594-
$ignoreErrors[] = [
9595-
'message' => '#^Method CodeIgniter\\\\Test\\\\FeatureTestCase\\:\\:tearDownDatabase\\(\\) has no return type specified\\.$#',
9596-
'count' => 1,
9597-
'path' => __DIR__ . '/system/Test/FeatureTestCase.php',
9598-
];
95999359
$ignoreErrors[] = [
96009360
'message' => '#^Method CodeIgniter\\\\Test\\\\FeatureTestCase\\:\\:withHeaders\\(\\) has parameter \\$headers with no value type specified in iterable type array\\.$#',
96019361
'count' => 1,

0 commit comments

Comments
 (0)