Skip to content

Commit ff79dcb

Browse files
committed
chore: Fix phpstan errors
1 parent d664c4a commit ff79dcb

25 files changed

+25
-29
lines changed

system/Config/BaseConfig.php

+1
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,7 @@ protected function registerProperties()
273273
}
274274

275275
$shortName = (new ReflectionClass($this))->getShortName();
276+
$worker = null;
276277

277278
if (isset(static::$moduleConfig->registrarHasData)) {
278279
// Get all public properties for this config

utils/phpstan-baseline/argument.type.neon

+1-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# total 73 errors
1+
# total 147 errors
22

33
parameters:
44
ignoreErrors:
@@ -122,11 +122,6 @@ parameters:
122122
count: 1
123123
path: ../../tests/system/Database/Live/SQLite3/AlterTableTest.php
124124

125-
-
126-
message: '#^Parameter \#2 \$forge of class CodeIgniter\\Database\\SQLite3\\Table constructor expects CodeIgniter\\Database\\SQLite3\\Forge, CodeIgniter\\Database\\Forge given\.$#'
127-
count: 1
128-
path: ../../tests/system/Database/Live/SQLite3/AlterTableTest.php
129-
130125
-
131126
message: '#^Parameter \#1 \$set of method CodeIgniter\\Database\\BaseBuilder\:\:updateFields\(\) expects list\<CodeIgniter\\Database\\RawSql\|string\>\|string, array\{0\: ''country'', updated_at\: CodeIgniter\\Database\\RawSql\} given\.$#'
132127
count: 2

utils/phpstan-baseline/assign.propertyType.neon

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# total 20 errors
1+
# total 29 errors
22

33
parameters:
44
ignoreErrors:

utils/phpstan-baseline/codeigniter.cacheHandlerInstance.neon

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# total 6 errors
1+
# total 14 errors
22

33
parameters:
44
ignoreErrors:

utils/phpstan-baseline/codeigniter.getReassignArray.neon

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# total 13 errors
1+
# total 22 errors
22

33
parameters:
44
ignoreErrors:

utils/phpstan-baseline/codeigniter.superglobalAccess.neon

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# total 53 errors
1+
# total 83 errors
22

33
parameters:
44
ignoreErrors:

utils/phpstan-baseline/codeigniter.superglobalAccessAssign.neon

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# total 260 errors
1+
# total 582 errors
22

33
parameters:
44
ignoreErrors:

utils/phpstan-baseline/codeigniter.unknownServiceMethod.neon

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# total 6 errors
1+
# total 9 errors
22

33
parameters:
44
ignoreErrors:

utils/phpstan-baseline/empty.notAllowed.neon

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# total 77 errors
1+
# total 271 errors
22

33
parameters:
44
ignoreErrors:

utils/phpstan-baseline/method.alreadyNarrowedType.neon

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# total 16 errors
1+
# total 22 errors
22

33
parameters:
44
ignoreErrors:

utils/phpstan-baseline/method.childReturnType.neon

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# total 39 errors
1+
# total 40 errors
22

33
parameters:
44
ignoreErrors:

utils/phpstan-baseline/method.notFound.neon

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# total 40 errors
1+
# total 83 errors
22

33
parameters:
44
ignoreErrors:

utils/phpstan-baseline/missingType.iterableValue.neon

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# total 1665 errors
1+
# total 1672 errors
22

33
parameters:
44
ignoreErrors:

utils/phpstan-baseline/missingType.property.neon

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# total 127 errors
1+
# total 130 errors
22

33
parameters:
44
ignoreErrors:

utils/phpstan-baseline/nullCoalesce.property.neon

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# total 15 errors
1+
# total 22 errors
22

33
parameters:
44
ignoreErrors:

utils/phpstan-baseline/offsetAccess.notFound.neon

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# total 6 errors
1+
# total 19 errors
22

33
parameters:
44
ignoreErrors:

utils/phpstan-baseline/property.nonObject.neon

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# total 25 errors
1+
# total 54 errors
22

33
parameters:
44
ignoreErrors:

utils/phpstan-baseline/property.notFound.neon

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# total 30 errors
1+
# total 58 errors
22

33
parameters:
44
ignoreErrors:

utils/phpstan-baseline/property.protected.neon

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# total 9 errors
1+
# total 15 errors
22

33
parameters:
44
ignoreErrors:

utils/phpstan-baseline/property.readOnlyByPhpDocAssignOutOfClass.neon

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# total 16 errors
1+
# total 35 errors
22

33
parameters:
44
ignoreErrors:

utils/phpstan-baseline/property.readOnlyByPhpDocDefaultValue.neon

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# total 7 errors
1+
# total 21 errors
22

33
parameters:
44
ignoreErrors:

utils/phpstan-baseline/staticMethod.notFound.neon

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# total 7 errors
1+
# total 20 errors
22

33
parameters:
44
ignoreErrors:

utils/phpstan-baseline/ternary.shortNotAllowed.neon

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# total 27 errors
1+
# total 38 errors
22

33
parameters:
44
ignoreErrors:

utils/phpstan-baseline/varTag.type.neon

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# total 8 errors
1+
# total 9 errors
22

33
parameters:
44
ignoreErrors:

utils/phpstan-baseline/variable.undefined.neon

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# total 15 errors
1+
# total 21 errors
22

33
parameters:
44
ignoreErrors:

0 commit comments

Comments
 (0)