Skip to content

Commit

Permalink
Fix order of array_first arguments
Browse files Browse the repository at this point in the history
As per https://laravel.com/docs/5.3/upgrade (under "Arrays")
  • Loading branch information
tobyzerner committed Jan 1, 2018
1 parent 292fe06 commit fe56f57
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Notification/NotificationSyncer.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public function sync(Blueprint\BlueprintInterface $blueprint, array $users)
continue;
}

$existing = $toDelete->first(function ($i, $notification) use ($user) {
$existing = $toDelete->first(function ($notification, $i) use ($user) {
return $notification->user_id === $user->id;
});

Expand Down

0 comments on commit fe56f57

Please sign in to comment.