From a391123c9cbd64fd1f761c04a49602c879b2c3fa Mon Sep 17 00:00:00 2001 From: Ian Dunn Date: Wed, 17 Aug 2022 11:51:22 -0700 Subject: [PATCH] Contributors: Apply `??` before array cast, to avoid PHP notice. See 8c28881 --- plugins/wporg-5ftf/includes/xprofile.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/wporg-5ftf/includes/xprofile.php b/plugins/wporg-5ftf/includes/xprofile.php index 8efe6ce..aae2c26 100644 --- a/plugins/wporg-5ftf/includes/xprofile.php +++ b/plugins/wporg-5ftf/includes/xprofile.php @@ -59,7 +59,7 @@ function get_all_xprofile_contributor_hours_teams() : array { $user->user_id = absint( $user->user_id ); $user->hours_per_week = absint( $user->hours_per_week ?? 0 ); - $user->team_names = (array) $user->team_names ?? array(); + $user->team_names = (array) ( $user->team_names ?? array() ); if ( 0 >= $user->hours_per_week || empty( $user->team_names ) ) { unset( $users[ $user_index ] );