Skip to content

Commit

Permalink
Removed isset check for non-existant property
Browse files Browse the repository at this point in the history
Looks like a left over from the original eloquent model.
  • Loading branch information
wleona3 authored and Will Leonardi committed Jul 4, 2017
1 parent 0701b5e commit 09970fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Model.php
Original file line number Diff line number Diff line change
Expand Up @@ -909,7 +909,7 @@ public function offsetUnset($offset)
*/
public function __isset($key)
{
return (isset($this->attributes[$key]) || isset($this->relations[$key])) ||
return isset($this->attributes[$key]) ||
($this->hasGetMutator($key) && ! is_null($this->getAttributeValue($key)));
}

Expand Down

0 comments on commit 09970fd

Please sign in to comment.