mirror of
https://github.com/flarum/framework.git
synced 2024-11-30 13:36:10 +08:00
Fix order of array_first arguments
As per https://laravel.com/docs/5.3/upgrade (under "Arrays")
This commit is contained in:
parent
8c787cdd51
commit
2a8545c389
|
@ -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;
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user