src/Viserio/Component/Session/EncryptedStore.php
protected function prepareForReadFromHandler($data): array
    {
        $hiddenString = Crypto::decrypt($data, $this->key);

        if ($decryptedValue = $hiddenString->getString()) {
            $sessionData = \json_decode($decryptedValue, true);

            \sodium_memzero($decryptedValue);

            if ($sessionData === null) {
                return [];
            }

            return $sessionData;
        }

        return [];
    }
protected function prepareForReadFromHandler($data): array
    {
        $hiddenString = Crypto::decrypt($data, $this->key);

        if ($decryptedValue = $hiddenString->getString()) {
            $sessionData = \json_decode($decryptedValue, true);

            \sodium_memzero($decryptedValue);

            if ($sessionData === null) {
                return [];
            }

            return $sessionData;
        }

        return [];
    }
{@inheritdoc}