Skip to content

Commit 25b1d76

Browse files
committed
allow invokables
1 parent 234db1c commit 25b1d76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Foundation/helpers.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1010,7 +1010,7 @@ function __($key = null, $replace = [], $locale = null)
10101010
function uri(UriInterface|Stringable|array|string $uri, mixed $parameters = [], bool $absolute = true): Uri
10111011
{
10121012
return match (true) {
1013-
is_array($uri) => Uri::action($uri, $parameters, $absolute),
1013+
is_array($uri) || str_contains($uri, '\\') => Uri::action($uri, $parameters, $absolute),
10141014
default => Uri::of($uri),
10151015
};
10161016
}

0 commit comments

Comments
 (0)