Skip to content

Creating array property in SessionSection has no effect #191

Description

@thorewi

Version: 3.1.0

Bug Description

When I create sessionSection and save an array property to it with one element, it does not have any effect.

Steps To Reproduce

$cart = $this->session->getSection('cart');			
$cart->items[0] = 0;
echo $cart->items[0];

I get notice Trying to access array offset on value of type null.

Expected Behavior

To get 0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions