Skip to content

Commit

Permalink
Add WPORG_GP_Translation_Events_Event type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
trymebytes committed Feb 16, 2024
1 parent 32d2309 commit 1f93e6c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ private function select_events_user_is_registered_for( array $events, int $user_
$attending_event_ids = get_user_meta( $user_id, WPORG_GP_Translation_Events_Route::USER_META_KEY_ATTENDING, true );
return array_filter(
$events,
function ( $event ) use ( $attending_event_ids ) {
function ( WPORG_GP_Translation_Events_Event $event ) use ( $attending_event_ids ) {
return isset( $attending_event_ids[ $event->id() ] );
}
);
Expand Down

0 comments on commit 1f93e6c

Please sign in to comment.