- Add support for PHP
min
andmax
functions - Add
Parser::IGNORE_UNKNOWN_VARIABLES
andParser::IGNORE_UNKNOWN_FUNCTIONS
flags to control whether parsing and linting should check for unknown variables and functions. - Deprecate passing
null
as the allowed variable names toExpressionLanguage::lint()
andParser::lint()
, pass theIGNORE_UNKNOWN_VARIABLES
flag instead to ignore unknown variables during linting
- The
in
andnot in
operators now use strict comparison
- Add
enum
expression function - Deprecate loose comparisons when using the "in" operator; normalize the array parameter so it only has the expected types or implement loose matching in your own expression function
- Add support for null-coalescing syntax
- Add support for null-safe syntax when parsing object's methods and properties
- Add new operators:
contains
,starts with
andends with
- Support lexing numbers with the numeric literal separator
_
- Support lexing decimals with no leading zero
- added
lint
method toExpressionLanguage
class - added
lint
method toParser
class
- the first argument of the
ExpressionLanguage
constructor must be an instance ofCacheItemPoolInterface
- removed the
ArrayParserCache
andParserCacheAdapter
classes - removed the
ParserCacheInterface
- Added ExpressionFunction and ExpressionFunctionProviderInterface
- added the component