- Issue created by @joaopauloc.dev
Points to work
InvalidExpressionException.php
Improve the message
src/Services/CalculationFieldsHandlerExpression.php:25
We could make the validation of deciding what is invalid extendable. Also, improve the current validation.
src/Element/FormCalculationElement.php:83
Make this validation extendable. Webform/Form render can have many elements that group elements, other modules could implement custom elements to create a page or another type of container. Make this method extendable, we allow other modules do whatever they need in case they want to look for the step in another way.
src/Services/CalculationFieldsHandlerExpression.php::validateExpression
We need to improve this validation. To check if the expression is valid for the Symfony/expression-language package, we are replacing the: field values with fake values and checking if it is valid by the expression language by checking if there is any exception being thrown.
Active
1.0
Code