src/Appcia/Utils/Php.php
public static function decode($value)
    {
        if (empty($value)) {
            return null;
        }

        if (!is_string($value)) {
            throw new \InvalidArgumentException(sprintf(
                "Value type '%s' is not a PHP string so it cannot be unserialized.",
                gettype($value)
            ));
        }

        $data = unserialize($value);

        return $data;
    }
public static function decode($value)
    {
        if (empty($value)) {
            return null;
        }

        if (!is_string($value)) {
            throw new \InvalidArgumentException(sprintf(
                "Value type '%s' is not a PHP string so it cannot be unserialized.",
                gettype($value)
            ));
        }

        $data = unserialize($value);

        return $data;
    }
public static function decode ( $ value ) { if ( empty ( $ value ) ) { return null ; } if ( ! is_string ( $ value ) ) { throw new \ InvalidArgumentException ( sprintf ( "Value type '%s' is not a PHP string so it cannot be unserialized." , gettype ( $ value ) ) ) ; } $ data = unserialize ( $ value ) ; return $ data ; }
Unserialize mixed type data

@param string $value

@return mixed|NULL
@throws \InvalidArgumentException
Unserialize mixed type data