Skip to content

Commit

Permalink
AppContext & Container call() do not use callable as type hint, detec…
Browse files Browse the repository at this point in the history
…t callable after bind context #1026
  • Loading branch information
asika32764 committed May 28, 2023
1 parent 71d7649 commit b84c865
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AttributesResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public function call(callable $callable, array $args = [], ?object $context = nu
return $this->resolveCallable($callable, $context, $options)(...$args);
}

public function resolveCallable(callable $callable, ?object $context = null, array $options = []): callable
public function resolveCallable(mixed $callable, ?object $context = null, array $options = []): callable
{
$ref = new ReflectionCallable($callable);
$funcRef = $ref->getReflector();
Expand Down

0 comments on commit b84c865

Please sign in to comment.