diff --git a/resources/classes/groups.php b/resources/classes/groups.php index 02e6c57697..e1e0bec385 100644 --- a/resources/classes/groups.php +++ b/resources/classes/groups.php @@ -58,7 +58,7 @@ /** * called when the object is created */ - public function __construct(database $database = null, $domain_uuid = null, $user_uuid = null) { + public function __construct(?database $database = null, $domain_uuid = null, $user_uuid = null) { //handle the database object $this->database = $database ?? database::new();