Fix order of array_first arguments

As per https://laravel.com/docs/5.3/upgrade (under "Arrays")
This commit is contained in:
Toby Zerner 2018-01-02 09:48:50 +10:30
parent 8c787cdd51
commit 2a8545c389

View File

@ -89,7 +89,7 @@ class NotificationSyncer
continue; continue;
} }
$existing = $toDelete->first(function ($i, $notification) use ($user) { $existing = $toDelete->first(function ($notification, $i) use ($user) {
return $notification->user_id === $user->id; return $notification->user_id === $user->id;
}); });