diff --git a/src/functions.php b/src/functions.php index 4729ea1..691a824 100644 --- a/src/functions.php +++ b/src/functions.php @@ -33,7 +33,7 @@ function negate(Closure $condition) function wrap($value) { - if (! $value instanceof Closure) { + if (! is_callable($value)) { $value = function () use ($value) { return $value; };