Skip to content

Incorrect documentation for caching #4970

Closed
@Elendev

Description

@Elendev

The last example of the Expression language caching section (https://github.com/symfony/symfony-docs/blob/2.6/components/expression_language/caching.rst) doesn't work :

$expression = new SerializedParsedExpression(
        serialize($language->parse('1 + 4', array()))
    );

The SerializedParsedExpression constructor requires a $nodes parameters.
I'm not really sure on how to do it the right way.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions