Skip to content

Commit f94410b

Browse files
committed
Fix PHPStan iterable type errors in Namespaces; clean baseline (#8732)
1 parent 1258b2c commit f94410b

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

system/Commands/Utilities/Namespaces.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,11 @@ public function run(array $params)
9191
CLI::table($tbody, $thead);
9292
}
9393

94+
/**
95+
* @param array{m:int,r?:mixed} $params
96+
*
97+
* @return array<int,array{0:string,1:string,2:string}>
98+
*/
9499
private function outputAllNamespaces(array $params): array
95100
{
96101
$maxLength = $params['m'];

utils/phpstan-baseline/missingType.iterableValue.neon

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

33
parameters:
44
ignoreErrors:
@@ -217,16 +217,6 @@ parameters:
217217
count: 1
218218
path: ../../system/Commands/Translation/LocalizationFinder.php
219219

220-
-
221-
message: '#^Method CodeIgniter\\Commands\\Utilities\\Namespaces\:\:outputAllNamespaces\(\) has parameter \$params with no value type specified in iterable type array\.$#'
222-
count: 1
223-
path: ../../system/Commands/Utilities/Namespaces.php
224-
225-
-
226-
message: '#^Method CodeIgniter\\Commands\\Utilities\\Namespaces\:\:outputAllNamespaces\(\) return type has no value type specified in iterable type array\.$#'
227-
count: 1
228-
path: ../../system/Commands/Utilities/Namespaces.php
229-
230220
-
231221
message: '#^Method CodeIgniter\\Commands\\Utilities\\Namespaces\:\:outputCINamespaces\(\) has parameter \$params with no value type specified in iterable type array\.$#'
232222
count: 1

0 commit comments

Comments
 (0)