Allow callable strings/arrays to be used
This commit is contained in:
parent
f0c7ed513e
commit
569371b4d2
|
|
@ -33,7 +33,7 @@ function negate(Closure $condition)
|
||||||
|
|
||||||
function wrap($value)
|
function wrap($value)
|
||||||
{
|
{
|
||||||
if (! $value instanceof Closure) {
|
if (! is_callable($value)) {
|
||||||
$value = function () use ($value) {
|
$value = function () use ($value) {
|
||||||
return $value;
|
return $value;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue