Skip to content

Commit 759ac25

Browse files
ozgurgizniburak
authored andcommitted
fix: return type of RouterCommand runMethodWithParams
1 parent d064d6b commit 759ac25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/RouterCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ protected function resolveClass(string $class, string $path, string $namespace):
198198
/**
199199
* @throws ReflectionException
200200
*/
201-
protected function runMethodWithParams(array|Closure $function, array $params): Response
201+
protected function runMethodWithParams(array|Closure $function, array $params): Response|string|int
202202
{
203203
$reflection = is_array($function)
204204
? new ReflectionMethod($function[0], $function[1])

0 commit comments

Comments
 (0)