Skip to content
This repository was archived by the owner on Jan 31, 2020. It is now read-only.
This repository was archived by the owner on Jan 31, 2020. It is now read-only.

SessionStorage object won't array merge #10

@basz

Description

@basz

When I configure session storage to use the Zend\Session\Storage\SessionStorage::class which would replace the $_SESSION variable with an ArrayObject an fatal error occurs then the ArrayObject is fed into ArrayUtil:merge() as that will only accept an array.

 /* @see \Zend\Session\Storage\StorageInterface */
    'session_storage' => [
        'type' => \Zend\Session\Storage\SessionStorage::class,
    ],
Argument 1 passed to Zend\Stdlib\ArrayUtils::merge() must be of the type array, object given, called in ../vendor/zendframework/zend-session/src/SessionManager.php on line 114 and defined in <b>..../vendor/zendframework/zend-stdlib/src/ArrayUtils.php

I'm using zend-session 2.5.2

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