From f38d27b55d145b8a424fb9536300944c6e5c3c84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 4 Mar 2022 19:21:23 +0100 Subject: [PATCH] Add proper return types to Suspensions --- files/lib/system/suspension/BanSuspension.class.php | 2 +- files/lib/system/suspension/MuteSuspension.class.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/files/lib/system/suspension/BanSuspension.class.php b/files/lib/system/suspension/BanSuspension.class.php index 385defc..40657e0 100644 --- a/files/lib/system/suspension/BanSuspension.class.php +++ b/files/lib/system/suspension/BanSuspension.class.php @@ -27,7 +27,7 @@ final class BanSuspension implements ISuspension /** * @inheritDoc */ - public function hasEffect(Suspension $suspension) + public function hasEffect(Suspension $suspension): bool { $user = new UserProfile($suspension->getUser()); $room = $suspension->getRoom(); diff --git a/files/lib/system/suspension/MuteSuspension.class.php b/files/lib/system/suspension/MuteSuspension.class.php index 5de126b..faf26be 100644 --- a/files/lib/system/suspension/MuteSuspension.class.php +++ b/files/lib/system/suspension/MuteSuspension.class.php @@ -27,7 +27,7 @@ final class MuteSuspension implements ISuspension /** * @inheritDoc */ - public function hasEffect(Suspension $suspension) + public function hasEffect(Suspension $suspension): bool { $user = new UserProfile($suspension->getUser()); $room = $suspension->getRoom();