From 2a8545c389af4fc5bee26265ce143788c350306a 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") --- framework/core/src/Notification/NotificationSyncer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/core/src/Notification/NotificationSyncer.php b/framework/core/src/Notification/NotificationSyncer.php index 5dc3a1843..b8cd39b48 100644 --- a/framework/core/src/Notification/NotificationSyncer.php +++ b/framework/core/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; });