From 040f31c09f386cf89cfdc1f03bdd8101b39e32eb Mon Sep 17 00:00:00 2001 From: Mohamed Said Date: Tue, 18 Jul 2017 17:10:42 +0200 Subject: [PATCH] user ArrWrap --- src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php b/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php index ac59f42d1944..67a921096844 100644 --- a/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php +++ b/src/Illuminate/Database/Eloquent/Concerns/HasAttributes.php @@ -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; }