From b867bd61b9e67a742e7b443706a4e3956c6c1af1 Mon Sep 17 00:00:00 2001
From: Jan-Hendrik Willms <tleilax+github@gmail.com>
Date: Mon, 14 Feb 2022 09:22:32 +0100
Subject: [PATCH] fixes #673

---
 lib/classes/ConsultationMailer.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/classes/ConsultationMailer.php b/lib/classes/ConsultationMailer.php
index aa9c7a7b6a4..45ef0b48fc0 100644
--- a/lib/classes/ConsultationMailer.php
+++ b/lib/classes/ConsultationMailer.php
@@ -30,7 +30,7 @@ class ConsultationMailer
      * @param string           $reason  Reason for a booking or cancelation
      * @param User             $sender  Sender of the message
      */
-    public static function sendMessage(?User $sender, User $user, ConsultationBooking $booking, string $subject, string $reason = '')
+    public static function sendMessage(?User $sender, User $user, ConsultationBooking $booking, string $subject, ?string $reason = '')
     {
         // Don't send message if user doesn't want it
         if (!UserConfig::get($user->id)->CONSULTATION_SEND_MESSAGES) {
-- 
GitLab