src/Payum/Core/Bridge/Doctrine/Types/ObjectType.php
public function convertToPHPValue($value)
    {
        if ($value === null) {
            return;
        }

        $value = (is_resource($value)) ? stream_get_contents($value) : $value;
        $val = unserialize($value);
        if ($val === false && $value !== 'b:0;') {
            throw new \LogicException('Conversion exception: '.$value.'. '.$this->getName());
        }

        return $val;
    }
public function convertToPHPValue($value)
    {
        if ($value === null) {
            return;
        }

        $value = (is_resource($value)) ? stream_get_contents($value) : $value;
        $val = unserialize($value);
        if ($val === false && $value !== 'b:0;') {
            throw new \LogicException('Conversion exception: '.$value.'. '.$this->getName());
        }

        return $val;
    }
{@inheritDoc}