You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 20, 2021. It is now read-only.
$context['var'] = "a";
$rule = 'var in ("a","b")';
$ruler->assert($rule,$context);
This evaluates to true, which is correct.
However if your array has a single item:
$context['var'] = "a";
$rule = 'var in ("a")';
$ruler->assert($rule,$context);
You receive an fatal error:
PHP Catchable fatal error: Argument 2 passed to Hoa\Ruler\Visitor\Asserter::Hoa\Ruler\Visitor\{closure}() must be of the type array, string given in /hoa/ruler/Hoa/Ruler/Visitor/Asserter.php on line 112"
The text was updated successfully, but these errors were encountered:
Suppose you have a rule:
This evaluates to true, which is correct.
However if your array has a single item:
You receive an fatal error:
The text was updated successfully, but these errors were encountered: