src/Payum/Core/Storage/AbstractStorage.php
public function find($id)
    {
        if ($id instanceof IdentityInterface) {
            if (ltrim($id->getClass(), '\\') === ltrim($this->modelClass, '\\')) {
                return $this->doFind($id->getId());
            }

            return;
        }

        return $this->doFind($id);
    }
public function find($id)
    {
        if ($id instanceof IdentityInterface) {
            if (ltrim($id->getClass(), '\\') === ltrim($this->modelClass, '\\')) {
                return $this->doFind($id->getId());
            }

            return;
        }

        return $this->doFind($id);
    }
{@inheritDoc}