From 449d16360695ac71ac181d3bc9cb3e7502455a6f Mon Sep 17 00:00:00 2001 From: Michael Bragg Date: Mon, 9 Oct 2023 14:29:12 +0100 Subject: [PATCH] Change implode order from legacy signature This plugin sets its minimum PHP version as 7.4 in the readme.txt. As of PHP 7.4 `implode()` changes the order of its arguments from 'Array, Separator' to 'Separator, 'Array'. As of PHP 8.0 the legacy order support is removed. In preparation for a minimum version of PHP 8.0 this would fix the removed error while being compatible with the plugins current minimal version. --- src/Tribe/REST/V1/Endpoints/Single_Attendee.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Tribe/REST/V1/Endpoints/Single_Attendee.php b/src/Tribe/REST/V1/Endpoints/Single_Attendee.php index f18b1d2601..bbae0ee12e 100644 --- a/src/Tribe/REST/V1/Endpoints/Single_Attendee.php +++ b/src/Tribe/REST/V1/Endpoints/Single_Attendee.php @@ -359,7 +359,7 @@ public function validate_attendee_status( $data, $provider ) { $error_message = sprintf( // Translators: %s - List of valid statuses. __( 'Supported statuses for this attendee are: %s', 'event-tickets' ), - implode( $statuses, ' | ' ) + implode( ' | ', $statuses ) ); return new WP_Error( 'invalid-attendee-status', $error_message, [ 'status' => 400 ] ); }