diff --git a/lib/classes/ConsultationMailer.php b/lib/classes/ConsultationMailer.php index aa9c7a7b6a4717482d6bed855b20f6c9c26aa5e4..45ef0b48fc04db543975e358b41cc5bd6e4926df 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) {