Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Security] Cannot use env in RememberMe config #36271

Closed
@zek

Description

@zek

Symfony version(s) affected: 3.4.39

Description
This is working until today's 3.4.39 update. using env in security.yaml causes this error.

Invalid type for path "security.firewalls.main.remember_me.lifetime". Expected int, but got string.

How to reproduce
inside of security.yaml

lifetime: '%env(int:REMEMBER_ME_COOKIE_LIFETIME)%'

Possible Solution
Remove these lines
https://github.com/symfony/symfony/pull/35910/files#diff-63961cbd5c56cdeb2e94e6024d58327fR148-R149

Additional context
image

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