Skip to content

Commit f2a1122

Browse files
committed
fix: prevent callable strings
1 parent 35839e9 commit f2a1122

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Http/Http.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -740,7 +740,7 @@ protected function getArguments(Hook $hook, string $context, array $values, arra
740740
$paramExists = $existsInRequest || $existsInValues;
741741

742742
$arg = $existsInRequest ? $requestParams[$key] : $param['default'];
743-
if (\is_callable($arg)) {
743+
if (\is_callable($arg) && !\is_string($arg)) {
744744
$arg = \call_user_func_array($arg, $this->getResources($param['injections']));
745745
}
746746
$value = $existsInValues ? $values[$key] : $arg;

0 commit comments

Comments
 (0)