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 }}
Repository navigation
rules: a condition that does not evaluate to a boolean throws a TypeError #370
RulesTransformer::matchRule() is declared bool but returns the raw result of the expression (RulesTransformer.php, return $this->language->evaluate(...)).
An expression that does not evaluate to a boolean throws a TypeError: preg_match(...) (exposed by the documentation, it returns an int), the matches operator, or a single variable used as condition.
The defect exists since v4.0.0.
Fix: cast the result to bool.
Found during the audit v3 (audit-v3-angles.md#192).
Activity
Merge pull request #377 from cleverage/370