Skip to content
This repository has been archived by the owner on Jan 2, 2023. It is now read-only.

Commit

Permalink
Hardcode class name instead of using "::class"
Browse files Browse the repository at this point in the history
  • Loading branch information
tobyzerner committed Feb 22, 2016
1 parent f950f40 commit 2e1d78e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/AbstractSerializer.php
Expand Up @@ -67,8 +67,7 @@ public function getRelationship($model, $name)
$relationship = $this->$method($model);

if ($relationship !== null && ! ($relationship instanceof Relationship)) {
throw new LogicException('Relationship method must return null or an instance of '
.Relationship::class);
throw new LogicException('Relationship method must return null or an instance of Tobscure\JsonApi\Relationship');
}

return $relationship;
Expand Down

1 comment on commit 2e1d78e

@tobyzerner
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See #77

Please sign in to comment.