add ref function alias to closure from callable
This commit is contained in:
parent
f8ea3de9f7
commit
822b939ec8
@ -32,6 +32,11 @@ function predicate($predicate): Predicate
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function ref(callable $callable)
|
||||||
|
{
|
||||||
|
return \Closure::fromCallable($callable);
|
||||||
|
}
|
||||||
|
|
||||||
function not($predicate)
|
function not($predicate)
|
||||||
{
|
{
|
||||||
return predicate($predicate)->not();
|
return predicate($predicate)->not();
|
||||||
|
Loading…
Reference in New Issue
Block a user