Skip to content

Change the hydrator check #67

@sagikazarmark

Description

@sagikazarmark

Proposed:

if ($this->hydrator) {
    return $this->hydrator->hydrate($response, 'class');
}

return $response;

This might put lots of code within the if, but seems logically more correct to me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions