Skip to content

Commit

Permalink
Low-hanging optimization in Eloquent model (#17739)
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandobandeira authored and taylorotwell committed Feb 3, 2017
1 parent 2d725c2 commit 8b8fd82
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ public function getAttributeValue($key)
*/
protected function getAttributeFromArray($key)
{
if (array_key_exists($key, $this->attributes)) {
if (isset($this->attributes[$key])) {
return $this->attributes[$key];
}
}
Expand Down

0 comments on commit 8b8fd82

Please sign in to comment.