diff --git a/lib/models/CourseMember.class.php b/lib/models/CourseMember.class.php
index 5f9ec5042fa506dc46a1c49914a12be6389cbd01..ed133a92823ef7a3d2d35d097d4369080f289cdc 100644
--- a/lib/models/CourseMember.class.php
+++ b/lib/models/CourseMember.class.php
@@ -442,7 +442,7 @@ class CourseMember extends SimpleORMap implements PrivacyObject
      * Get user information for all users in this course
      *
      */
-    public static function getMemberDataByCourse(string $seminar_id, ?string $status = '', ?string $user_id = null,): array
+    public static function getMemberDataByCourse(string $seminar_id, ?string $status = '', ?string $user_id = null): array
     {
         $query = "SELECT `datafield_id`
                   FROM `datafields`