Skip to content

Commit 942a6e8

Browse files
committed
docs: fix @var type to fix PHPStan error
1 parent 4cc43fb commit 942a6e8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

system/Router/AutoRouter.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
use Closure;
1515
use CodeIgniter\Exceptions\PageNotFoundException;
16+
use CodeIgniter\HTTP\ResponseInterface;
1617

1718
/**
1819
* Router for Auto-Routing
@@ -29,7 +30,7 @@ public function __construct(
2930
/**
3031
* List of CLI routes that do not contain '*' routes.
3132
*
32-
* @var array<string, Closure|string> [routeKey => handler]
33+
* @var array<string, Closure(): (ResponseInterface|string|void)|string> [routeKey => handler]
3334
*/
3435
private readonly array $cliRoutes,
3536
/**

0 commit comments

Comments
 (0)