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

Skip to content

Reading from NamespacedAttributeBag adds entries to session #27912

Closed
@Gemineye

Description

@Gemineye

Symfony version(s) affected: 3.4.12

Description
If i call $session->get('foo/bar/name') on a clean session I will end up with data in the session.
In my opinion a "get" should not create any entries.

How to reproduce

$session->get('foo/bar/name');
dump($session->get('foo'));

I would expect to see 'null' but i get an array containing "bar => null"

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