From 569371b4d21f0bc66f9f97821593754a7cf56f70 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Wed, 5 May 2021 14:21:15 +0930 Subject: [PATCH] Allow callable strings/arrays to be used --- src/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; };