From ece6f717e5d2bf38abf448085ce15f97d557edc7 Mon Sep 17 00:00:00 2001 From: Peter Sistrom Date: Thu, 7 Dec 2023 11:11:43 +1100 Subject: [PATCH] Fix boolean PHP warning in unit tests --- classes/privacy/provider.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/classes/privacy/provider.php b/classes/privacy/provider.php index 0c48dc5..551f268 100644 --- a/classes/privacy/provider.php +++ b/classes/privacy/provider.php @@ -354,9 +354,9 @@ private static function get_from_user() : array { * @param array $reply An array containing Reply to addresses * @param array $from An array containing from addresses * @param string $txt The main body of the mail in plain text - * @return boolean true if mail is sent otherwise false + * @return bool true if mail is sent otherwise false */ - private static function send_mail(array $to, array $reply, array $from, string $txt) : boolean { + private static function send_mail(array $to, array $reply, array $from, string $txt) : bool { $sitename = get_site(); $token = get_config('local_proview', 'token'); $account = get_config('local_proview', 'proview_acc_name');