Skip to content

Commit d0fd1a6

Browse files
committed
regenerate baseline
1 parent 2b4138d commit d0fd1a6

File tree

7 files changed

+7
-167
lines changed

7 files changed

+7
-167
lines changed

utils/phpstan-baseline/argument.type.neon

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# total 136 errors
1+
# total 91 errors
22

33
parameters:
44
ignoreErrors:
@@ -27,11 +27,6 @@ parameters:
2727
count: 1
2828
path: ../../system/Database/SQLite3/Builder.php
2929

30-
-
31-
message: '#^Parameter \#2 \$message_type of function error_log expects 0\|1\|3\|4, int given\.$#'
32-
count: 1
33-
path: ../../system/Log/Handlers/ErrorlogHandler.php
34-
3530
-
3631
message: '#^Parameter \#2 \$to of method CodeIgniter\\Router\\RouteCollection\:\:add\(\) expects array\|\(Closure\(mixed \.\.\.\)\: \(CodeIgniter\\HTTP\\ResponseInterface\|string\|void\)\)\|string, Closure\(mixed\)\: \(CodeIgniter\\HTTP\\DownloadResponse\|null\) given\.$#'
3732
count: 1
@@ -142,11 +137,6 @@ parameters:
142137
count: 1
143138
path: ../../tests/system/HTTP/HeaderTest.php
144139

145-
-
146-
message: '#^Parameter \#1 \$config of class CodeIgniter\\Log\\Logger constructor expects Config\\Logger, CodeIgniter\\Test\\Mock\\MockLogger given\.$#'
147-
count: 1
148-
path: ../../tests/system/HTTP/RedirectExceptionTest.php
149-
150140
-
151141
message: '#^Parameter \#3 \$expire of method CodeIgniter\\HTTP\\Response\:\:setCookie\(\) expects int, string given\.$#'
152142
count: 1
@@ -212,21 +202,6 @@ parameters:
212202
count: 1
213203
path: ../../tests/system/Log/Handlers/ChromeLoggerHandlerTest.php
214204

215-
-
216-
message: '#^Parameter \#1 \$config of class CodeIgniter\\Log\\Logger constructor expects Config\\Logger, CodeIgniter\\Test\\Mock\\MockLogger given\.$#'
217-
count: 25
218-
path: ../../tests/system/Log/LoggerTest.php
219-
220-
-
221-
message: '#^Parameter \#1 \$level of method CodeIgniter\\Log\\Logger\:\:log\(\) expects string, int given\.$#'
222-
count: 2
223-
path: ../../tests/system/Log/LoggerTest.php
224-
225-
-
226-
message: '#^Parameter \#2 \$message of method CodeIgniter\\Log\\Logger\:\:log\(\) expects string\|Stringable, CodeIgniter\\Test\\Mock\\MockLogger given\.$#'
227-
count: 1
228-
path: ../../tests/system/Log/LoggerTest.php
229-
230205
-
231206
message: '#^Parameter \#1 \$row of method CodeIgniter\\BaseModel\:\:save\(\) expects array\<int\|string, bool\|float\|int\|object\|string\|null\>\|object, array\<string, array\<int, string\>\> given\.$#'
232207
count: 1
@@ -262,11 +237,6 @@ parameters:
262237
count: 1
263238
path: ../../tests/system/Security/SecurityCSRFSessionRandomizeTokenTest.php
264239

265-
-
266-
message: '#^Parameter \#1 \$config of class CodeIgniter\\Log\\Logger constructor expects Config\\Logger, CodeIgniter\\Test\\Mock\\MockLogger given\.$#'
267-
count: 15
268-
path: ../../tests/system/Test/ControllerTestTraitTest.php
269-
270240
-
271241
message: '#^Parameter \#1 \$request of method CodeIgniter\\CodeIgniter\:\:setRequest\(\) expects CodeIgniter\\HTTP\\CLIRequest\|CodeIgniter\\HTTP\\IncomingRequest, CodeIgniter\\HTTP\\Request given\.$#'
272242
count: 1

utils/phpstan-baseline/empty.notAllowed.neon

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# total 251 errors
1+
# total 247 errors
22

33
parameters:
44
ignoreErrors:
@@ -182,11 +182,6 @@ parameters:
182182
count: 2
183183
path: ../../system/Debug/Toolbar.php
184184

185-
-
186-
message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#'
187-
count: 2
188-
path: ../../system/Debug/Toolbar/Collectors/Logs.php
189-
190185
-
191186
message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#'
192187
count: 12
@@ -292,11 +287,6 @@ parameters:
292287
count: 1
293288
path: ../../system/Images/Image.php
294289

295-
-
296-
message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#'
297-
count: 2
298-
path: ../../system/Log/Handlers/FileHandler.php
299-
300290
-
301291
message: '#^Construct empty\(\) is not allowed\. Use more strict comparison\.$#'
302292
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 3262 errors
1+
# total 3189 errors
22
includes:
33
- argument.type.neon
44
- assign.propertyType.neon

utils/phpstan-baseline/method.childParameterType.neon

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# total 9 errors
1+
# total 8 errors
22

33
parameters:
44
ignoreErrors:
@@ -41,8 +41,3 @@ parameters:
4141
message: '#^Parameter \#1 \$value \(int\) of method CodeIgniter\\Entity\\Cast\\IntBoolCast\:\:get\(\) should be contravariant with parameter \$value \(array\|bool\|float\|int\|object\|string\|null\) of method CodeIgniter\\Entity\\Cast\\CastInterface\:\:get\(\)$#'
4242
count: 1
4343
path: ../../system/Entity/Cast/IntBoolCast.php
44-
45-
-
46-
message: '#^Parameter \#1 \$level \(string\) of method CodeIgniter\\Log\\Logger\:\:log\(\) should be contravariant with parameter \$level \(mixed\) of method Psr\\Log\\LoggerInterface\:\:log\(\)$#'
47-
count: 1
48-
path: ../../system/Log/Logger.php

utils/phpstan-baseline/missingType.iterableValue.neon

Lines changed: 1 addition & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# total 1571 errors
1+
# total 1553 errors
22

33
parameters:
44
ignoreErrors:
@@ -2497,21 +2497,6 @@ parameters:
24972497
count: 1
24982498
path: ../../system/Debug/Toolbar/Collectors/History.php
24992499

2500-
-
2501-
message: '#^Method CodeIgniter\\Debug\\Toolbar\\Collectors\\Logs\:\:collectLogs\(\) return type has no value type specified in iterable type array\.$#'
2502-
count: 1
2503-
path: ../../system/Debug/Toolbar/Collectors/Logs.php
2504-
2505-
-
2506-
message: '#^Method CodeIgniter\\Debug\\Toolbar\\Collectors\\Logs\:\:display\(\) return type has no value type specified in iterable type array\.$#'
2507-
count: 1
2508-
path: ../../system/Debug/Toolbar/Collectors/Logs.php
2509-
2510-
-
2511-
message: '#^Property CodeIgniter\\Debug\\Toolbar\\Collectors\\Logs\:\:\$data type has no value type specified in iterable type array\.$#'
2512-
count: 1
2513-
path: ../../system/Debug/Toolbar/Collectors/Logs.php
2514-
25152500
-
25162501
message: '#^Method CodeIgniter\\Debug\\Toolbar\\Collectors\\Timers\:\:formatTimelineData\(\) return type has no value type specified in iterable type array\.$#'
25172502
count: 1
@@ -4552,71 +4537,6 @@ parameters:
45524537
count: 1
45534538
path: ../../system/Language/Language.php
45544539

4555-
-
4556-
message: '#^Method CodeIgniter\\Log\\Handlers\\BaseHandler\:\:__construct\(\) has parameter \$config with no value type specified in iterable type array\.$#'
4557-
count: 1
4558-
path: ../../system/Log/Handlers/BaseHandler.php
4559-
4560-
-
4561-
message: '#^Property CodeIgniter\\Log\\Handlers\\BaseHandler\:\:\$handles type has no value type specified in iterable type array\.$#'
4562-
count: 1
4563-
path: ../../system/Log/Handlers/BaseHandler.php
4564-
4565-
-
4566-
message: '#^Method CodeIgniter\\Log\\Handlers\\ChromeLoggerHandler\:\:__construct\(\) has parameter \$config with no value type specified in iterable type array\.$#'
4567-
count: 1
4568-
path: ../../system/Log/Handlers/ChromeLoggerHandler.php
4569-
4570-
-
4571-
message: '#^Method CodeIgniter\\Log\\Handlers\\ChromeLoggerHandler\:\:format\(\) has parameter \$object with no value type specified in iterable type array\.$#'
4572-
count: 1
4573-
path: ../../system/Log/Handlers/ChromeLoggerHandler.php
4574-
4575-
-
4576-
message: '#^Method CodeIgniter\\Log\\Handlers\\ChromeLoggerHandler\:\:format\(\) return type has no value type specified in iterable type array\.$#'
4577-
count: 1
4578-
path: ../../system/Log/Handlers/ChromeLoggerHandler.php
4579-
4580-
-
4581-
message: '#^Property CodeIgniter\\Log\\Handlers\\ChromeLoggerHandler\:\:\$json type has no value type specified in iterable type array\.$#'
4582-
count: 1
4583-
path: ../../system/Log/Handlers/ChromeLoggerHandler.php
4584-
4585-
-
4586-
message: '#^Property CodeIgniter\\Log\\Handlers\\ChromeLoggerHandler\:\:\$levels type has no value type specified in iterable type array\.$#'
4587-
count: 1
4588-
path: ../../system/Log/Handlers/ChromeLoggerHandler.php
4589-
4590-
-
4591-
message: '#^Method CodeIgniter\\Log\\Handlers\\FileHandler\:\:__construct\(\) has parameter \$config with no value type specified in iterable type array\.$#'
4592-
count: 1
4593-
path: ../../system/Log/Handlers/FileHandler.php
4594-
4595-
-
4596-
message: '#^Method CodeIgniter\\Log\\Logger\:\:determineFile\(\) return type has no value type specified in iterable type array\.$#'
4597-
count: 1
4598-
path: ../../system/Log/Logger.php
4599-
4600-
-
4601-
message: '#^Method CodeIgniter\\Log\\Logger\:\:interpolate\(\) has parameter \$context with no value type specified in iterable type array\.$#'
4602-
count: 1
4603-
path: ../../system/Log/Logger.php
4604-
4605-
-
4606-
message: '#^Property CodeIgniter\\Log\\Logger\:\:\$handlers type has no value type specified in iterable type array\.$#'
4607-
count: 1
4608-
path: ../../system/Log/Logger.php
4609-
4610-
-
4611-
message: '#^Property CodeIgniter\\Log\\Logger\:\:\$logCache type has no value type specified in iterable type array\.$#'
4612-
count: 1
4613-
path: ../../system/Log/Logger.php
4614-
4615-
-
4616-
message: '#^Property CodeIgniter\\Log\\Logger\:\:\$loggableLevels type has no value type specified in iterable type array\.$#'
4617-
count: 1
4618-
path: ../../system/Log/Logger.php
4619-
46204540
-
46214541
message: '#^Method CodeIgniter\\Model\:\:__call\(\) has parameter \$params with no value type specified in iterable type array\.$#'
46224542
count: 1
@@ -5282,11 +5202,6 @@ parameters:
52825202
count: 1
52835203
path: ../../system/Test/Mock/MockEvents.php
52845204

5285-
-
5286-
message: '#^Method CodeIgniter\\Test\\Mock\\MockFileLogger\:\:__construct\(\) has parameter \$config with no value type specified in iterable type array\.$#'
5287-
count: 1
5288-
path: ../../system/Test/Mock/MockFileLogger.php
5289-
52905205
-
52915206
message: '#^Method CodeIgniter\\Test\\Mock\\MockInputOutput\:\:getOutputs\(\) return type has no value type specified in iterable type array\.$#'
52925207
count: 1
@@ -6962,11 +6877,6 @@ parameters:
69626877
count: 1
69636878
path: ../../tests/system/Language/LanguageTest.php
69646879

6965-
-
6966-
message: '#^Method CodeIgniter\\Log\\Handlers\\ErrorlogHandlerTest\:\:getMockedHandler\(\) has parameter \$config with no value type specified in iterable type array\.$#'
6967-
count: 1
6968-
path: ../../tests/system/Log/Handlers/ErrorlogHandlerTest.php
6969-
69706880
-
69716881
message: '#^Method CodeIgniter\\Models\\DeleteModelTest\:\:emptyPkValues\(\) return type has no value type specified in iterable type iterable\.$#'
69726882
count: 1

utils/phpstan-baseline/missingType.property.neon

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# total 119 errors
1+
# total 115 errors
22

33
parameters:
44
ignoreErrors:
@@ -52,26 +52,6 @@ parameters:
5252
count: 1
5353
path: ../../system/Test/Mock/MockCURLRequest.php
5454

55-
-
56-
message: '#^Property CodeIgniter\\Test\\Mock\\MockFileLogger\:\:\$destination has no type specified\.$#'
57-
count: 1
58-
path: ../../system/Test/Mock/MockFileLogger.php
59-
60-
-
61-
message: '#^Property CodeIgniter\\Test\\Mock\\MockLogger\:\:\$dateFormat has no type specified\.$#'
62-
count: 1
63-
path: ../../system/Test/Mock/MockLogger.php
64-
65-
-
66-
message: '#^Property CodeIgniter\\Test\\Mock\\MockLogger\:\:\$handlers has no type specified\.$#'
67-
count: 1
68-
path: ../../system/Test/Mock/MockLogger.php
69-
70-
-
71-
message: '#^Property CodeIgniter\\Test\\Mock\\MockLogger\:\:\$threshold has no type specified\.$#'
72-
count: 1
73-
path: ../../system/Test/Mock/MockLogger.php
74-
7555
-
7656
message: '#^Property CodeIgniter\\Test\\Mock\\MockServices\:\:\$classmap has no type specified\.$#'
7757
count: 1

utils/phpstan-baseline/nullCoalesce.property.neon

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
1-
# total 20 errors
1+
# total 19 errors
22

33
parameters:
44
ignoreErrors:
5-
-
6-
message: '#^Property CodeIgniter\\Log\\Logger\:\:\$logCache \(array\) on left side of \?\? is not nullable\.$#'
7-
count: 1
8-
path: ../../system/Debug/Toolbar/Collectors/Logs.php
9-
105
-
116
message: '#^Property CodeIgniter\\Files\\File\:\:\$size \(int\) on left side of \?\? is not nullable\.$#'
127
count: 1

0 commit comments

Comments
 (0)