1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-12-21 21:30:08 +00:00

Add proper return types to Suspensions

This commit is contained in:
Tim Düsterhus 2022-03-04 19:21:23 +01:00
parent c8b8f4862c
commit f38d27b55d
Signed by: TimWolla
GPG Key ID: 8FF75566094168AF
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ final class BanSuspension implements ISuspension
/** /**
* @inheritDoc * @inheritDoc
*/ */
public function hasEffect(Suspension $suspension) public function hasEffect(Suspension $suspension): bool
{ {
$user = new UserProfile($suspension->getUser()); $user = new UserProfile($suspension->getUser());
$room = $suspension->getRoom(); $room = $suspension->getRoom();

View File

@ -27,7 +27,7 @@ final class MuteSuspension implements ISuspension
/** /**
* @inheritDoc * @inheritDoc
*/ */
public function hasEffect(Suspension $suspension) public function hasEffect(Suspension $suspension): bool
{ {
$user = new UserProfile($suspension->getUser()); $user = new UserProfile($suspension->getUser());
$room = $suspension->getRoom(); $room = $suspension->getRoom();