We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2570c24 commit 467239cCopy full SHA for 467239c
src/functions.php
@@ -34,7 +34,7 @@ function wrap($value)
34
35
function evaluate($condition, array $params)
36
{
37
- return $condition === true || ($condition instanceof Closure && $condition(...$params));
+ return $condition === true || (is_callable($condition) && $condition(...$params));
38
}
39
40
function run_callbacks(array $callbacks, array $params)
0 commit comments