Skip to content

Commit

Permalink
user ArrWrap
Browse files Browse the repository at this point in the history
  • Loading branch information
themsaid committed Jul 18, 2017
1 parent 9a77a62 commit 040f31c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1128,7 +1128,7 @@ protected function hasChanges($changes, $attributes = null)
// Here we will spin through every attribute and see if this is in the array of
// dirty attributes. If it is, we will return true and if we make it through
// all of the attributes for the entire array we will return false at end.
foreach (array_wrap($attributes) as $attribute) {
foreach (Arr::wrap($attributes) as $attribute) {
if (array_key_exists($attribute, $changes)) {
return true;
}
Expand Down

0 comments on commit 040f31c

Please sign in to comment.