Skip to content

ExpressionLanguage: Variable values have to be passed to the parser #4578

Closed
@xabbuh

Description

@xabbuh

When an expression is parsed using the ExpressionLanguage::parse() method, you will have to pass the actual variable values (see symfony/symfony#12800). This means that you have to pass an empty array when the expression doesn't contain any variables. This is currently wrong at least in the examples shown on http://symfony.com/doc/2.5/components/expression_language/caching.html#using-parsed-and-serialized-expressions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ExpressionLanguageactionableClear and specific issues ready for anyone to take them.buggood first issueIdeal for your first contribution! (some Symfony experience may be required)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions