From 575fbc724d9675de4f912b0cfafecf38337ada03 Mon Sep 17 00:00:00 2001 From: Awilum Date: Fri, 9 Sep 2022 18:07:30 +0300 Subject: [PATCH] feat(core): updates for #586 #585 #584 --- src/flextype/core/Parsers/Expressions.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/flextype/core/Parsers/Expressions.php b/src/flextype/core/Parsers/Expressions.php index f5867c75..05272d38 100644 --- a/src/flextype/core/Parsers/Expressions.php +++ b/src/flextype/core/Parsers/Expressions.php @@ -161,8 +161,6 @@ final class Expressions * Validates the syntax of an expression. * * @param array|null $names The list of acceptable variable names in the expression, or null to accept any names - * - * @throws SyntaxError When the passed expression is invalid */ public function lint(string $expression, ?array $names): void { @@ -202,8 +200,7 @@ final class Expressions public function registerExpressions(array $expressions) { - if (count($expressions) >= 0) { - + if (count($expressions) > 0) { foreach ($expressions as $expression) { if (! isset($expression['enabled'])) { continue;