From 351e3b7694a804e8d6a613288419ccabd22bc012 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Tue, 23 Jan 2018 12:07:08 -0600 Subject: [PATCH] use array values --- src/Illuminate/Queue/SerializesModels.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Illuminate/Queue/SerializesModels.php b/src/Illuminate/Queue/SerializesModels.php index 15c4af3c4918..e083d6f3217a 100644 --- a/src/Illuminate/Queue/SerializesModels.php +++ b/src/Illuminate/Queue/SerializesModels.php @@ -24,9 +24,9 @@ public function __sleep() )); } - return array_filter(array_map(function ($p) { + return array_values(array_filter(array_map(function ($p) { return $p->isStatic() ? null : $p->getName(); - }, $properties)); + }, $properties))); } /**