diff --git a/tests/phpunit/CRM/Event/Form/Registration/ConfirmTest.php b/tests/phpunit/CRM/Event/Form/Registration/ConfirmTest.php
index 479b7abc36be..f07544b84a86 100644
--- a/tests/phpunit/CRM/Event/Form/Registration/ConfirmTest.php
+++ b/tests/phpunit/CRM/Event/Form/Registration/ConfirmTest.php
@@ -543,7 +543,7 @@ public function testNoteSubmission() {
     $event = $this->creatEventWithProfile(NULL);
     $event['custom_pre_id'] = $this->ids["UFGroup"]["our profile"];
     $event['note'] = "This is note 1";
-    [$contact_id, $participant_id] = $this->submitWithNote($event, NULL);
+    list($contact_id, $participant_id) = $this->submitWithNote($event, NULL);
     civicrm_api3('Participant', 'delete', ['id' => $participant_id]);
 
     //now that the contact has one note, register this contact again with a different note
@@ -551,14 +551,14 @@ public function testNoteSubmission() {
     $event = $this->creatEventWithProfile($event);
     $event['custom_pre_id'] = $this->ids["UFGroup"]["our profile"];
     $event['note'] = "This is note 2";
-    [$contact_id, $participant_id] = $this->submitWithNote($event, $contact_id);
+    list($contact_id, $participant_id) = $this->submitWithNote($event, $contact_id);
     civicrm_api3('Participant', 'delete', ['id' => $participant_id]);
 
     //finally, submit a blank note and confirm that the note shown in the email is blank
     $event = $this->creatEventWithProfile($event);
     $event['custom_pre_id'] = $this->ids["UFGroup"]["our profile"];
     $event['note'] = "";
-    [$contact_id, $participant_id] = $this->submitWithNote($event, $contact_id);
+    list($contact_id, $participant_id) = $this->submitWithNote($event, $contact_id);
   }
 
 }