Skip to content

Commit fd782e7

Browse files
committed
refactor: system/Debug/Toolbar/Collectors/Routes.php
1 parent 011c886 commit fd782e7

File tree

2 files changed

+19
-5
lines changed

2 files changed

+19
-5
lines changed

phpstan-baseline.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4446,11 +4446,6 @@
44464446
'count' => 1,
44474447
'path' => __DIR__ . '/system/Debug/Toolbar/Collectors/Logs.php',
44484448
];
4449-
$ignoreErrors[] = [
4450-
'message' => '#^Method CodeIgniter\\\\Debug\\\\Toolbar\\\\Collectors\\\\Routes\\:\\:display\\(\\) return type has no value type specified in iterable type array\\.$#',
4451-
'count' => 1,
4452-
'path' => __DIR__ . '/system/Debug/Toolbar/Collectors/Routes.php',
4453-
];
44544449
$ignoreErrors[] = [
44554450
'message' => '#^Method CodeIgniter\\\\Debug\\\\Toolbar\\\\Collectors\\\\Timers\\:\\:formatTimelineData\\(\\) return type has no value type specified in iterable type array\\.$#',
44564451
'count' => 1,

system/Debug/Toolbar/Collectors/Routes.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,25 @@ class Routes extends BaseCollector
5151
/**
5252
* Returns the data of this collector to be formatted in the toolbar
5353
*
54+
* @return array{
55+
* matchedRoute: array<array{
56+
* directory: string,
57+
* controller: string,
58+
* method: string,
59+
* paramCount: int,
60+
* truePCount: int,
61+
* params: array<array{
62+
* name: string,
63+
* value: mixed
64+
* }>
65+
* }>,
66+
* routes: array<array{
67+
* method: string,
68+
* route: string,
69+
* handler: string
70+
* }>
71+
* }
72+
*
5473
* @throws ReflectionException
5574
*/
5675
public function display(): array

0 commit comments

Comments
 (0)