Skip to content

Commit 569371b

Browse files
committed
Allow callable strings/arrays to be used
1 parent f0c7ed5 commit 569371b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function negate(Closure $condition)
3333

3434
function wrap($value)
3535
{
36-
if (! $value instanceof Closure) {
36+
if (! is_callable($value)) {
3737
$value = function () use ($value) {
3838
return $value;
3939
};

0 commit comments

Comments
 (0)