Skip to content

Validator cache and closure #19937

@hlecorche

Description

@hlecorche

In validator component, a metadata object can have a closure.

But when framework.validation.cache is used with validator.mapping.cache.doctrine.apc, the cache throws an exception because cache can't seraliaze a closure.

Uncaught PHP Exception Exception: "Serialization of 'Closure' is not allowed" at /path/vendor/doctrine/cache/lib/Doctrine/Common/Cache/ApcCache.php line 57 {"exception":"[object] (Exception(code: 0): Serialization of 'Closure' is not allowed

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