Skip to content
This repository has been archived by the owner on Sep 22, 2024. It is now read-only.

Commit

Permalink
Fix offsetExists
Browse files Browse the repository at this point in the history
  • Loading branch information
pactode committed Jun 25, 2019
1 parent 96eccbb commit 019dd71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Resources/ApiResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function __get($key)
*/
public function offsetExists($offset)
{
return ! array_key_exists($this->attributes[$offset]);
return array_key_exists($offset, $this->attributes);
}

/**
Expand Down

0 comments on commit 019dd71

Please sign in to comment.