mirror of
https://github.com/flarum/core.git
synced 2025-08-21 15:52:44 +02:00
chore: increase phpstan level to 6 (#3836)
* chore: increase phpstan level to 6 Signed-off-by: Sami Mazouz <sychocouldy@gmail.com> * Apply fixes from StyleCI --------- Signed-off-by: Sami Mazouz <sychocouldy@gmail.com> Co-authored-by: StyleCI Bot <bot@styleci.io>
This commit is contained in:
@@ -20,7 +20,7 @@ class UserPolicy extends AbstractPolicy
|
||||
) {
|
||||
}
|
||||
|
||||
public function editNickname(User $actor, User $user)
|
||||
public function editNickname(User $actor, User $user): ?string
|
||||
{
|
||||
if ($actor->isGuest() && ! $user->exists && $this->settings->get('flarum-nicknames.set_on_registration')) {
|
||||
return $this->allow();
|
||||
@@ -29,5 +29,7 @@ class UserPolicy extends AbstractPolicy
|
||||
} elseif ($actor->can('edit', $user)) {
|
||||
return $this->allow();
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user