From fe56f57e8f8745358c2859795f705c916a8e9309 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Tue, 2 Jan 2018 09:48:50 +1030 Subject: [PATCH] Fix order of array_first arguments As per https://laravel.com/docs/5.3/upgrade (under "Arrays") --- src/Notification/NotificationSyncer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Notification/NotificationSyncer.php b/src/Notification/NotificationSyncer.php index 5dc3a1843..b8cd39b48 100644 --- a/src/Notification/NotificationSyncer.php +++ b/src/Notification/NotificationSyncer.php @@ -89,7 +89,7 @@ class NotificationSyncer continue; } - $existing = $toDelete->first(function ($i, $notification) use ($user) { + $existing = $toDelete->first(function ($notification, $i) use ($user) { return $notification->user_id === $user->id; });