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:
parent
c8b8f4862c
commit
f38d27b55d
@ -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();
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user