1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-06 05:07:41 +02:00

feat(core): updates for #586 #585 #584

This commit is contained in:
Awilum
2022-09-09 18:07:30 +03:00
parent e3930bd50c
commit 575fbc724d

View File

@@ -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;