Skip to content

Commit bac44e9

Browse files
committed
fix return type
1 parent 49d4589 commit bac44e9

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

system/Router/RouteCollection.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1455,8 +1455,10 @@ private function checkHostname($hostname): bool
14551455

14561456
/**
14571457
* @param array<array-key, mixed> $to
1458+
*
1459+
* @return array<array-key, mixed>|string
14581460
*/
1459-
private function processArrayCallableSyntax(string $from, array $to): string
1461+
private function processArrayCallableSyntax(string $from, array $to): array|string
14601462
{
14611463
// [classname, method]
14621464
// eg, [Home::class, 'index']

0 commit comments

Comments
 (0)