Skip to content

Commit

Permalink
Use a check on closure instead of callable - fix #laravel-ray/312
Browse files Browse the repository at this point in the history
  • Loading branch information
riasvdv committed Sep 4, 2023
1 parent 5fdbd8f commit 37d351c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Ray.php
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ public function send(...$arguments): self
return $argument;
}

if (! is_callable($argument)) {
if (! $argument instanceof Closure) {
return $argument;
}

Expand Down

0 comments on commit 37d351c

Please sign in to comment.