cannotUnserializeMessage example

/** @var string $value */
        $value = $data[__CLASS__];

        // @deprecated tag:v6.6.0 - Remove this workaround         if (str_starts_with($value, 'O:')) {
            return unserialize(stripslashes($value));
        }

        $value = base64_decode($value, true);

        if ($value === false) {
            throw MessageQueueException::cannotUnserializeMessage($data[__CLASS__]);
        }

        return unserialize($value);
    }

    /** * @param array<string, mixed> $context * * @return mixed */
    public function normalize(mixed $object, ?string $format = null, array $context = [])
    {
Home | Imprint | This part of the site doesn't use cookies.