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; });