Skip to content

Commit 618c6a1

Browse files
Apply suggestions from code review
Co-authored-by: Marcel Werk <[email protected]>
1 parent 3b08554 commit 618c6a1

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

wcfsetup/install/files/lib/system/user/command/Ban.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ final class Ban
1919
public function __construct(
2020
private readonly User $user,
2121
private readonly string $reason,
22-
private readonly ?int $banExpires = null,
22+
private readonly int $banExpires = 0,
2323
) {
2424
}
2525

wcfsetup/install/files/lib/system/user/command/DisableAvatar.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ final class DisableAvatar
1919
public function __construct(
2020
private readonly User $user,
2121
private readonly string $reason,
22-
private readonly ?int $expires = null,
22+
private readonly int $expires = 0,
2323
) {
2424
}
2525

wcfsetup/install/files/lib/system/user/command/DisableCoverPhoto.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ final class DisableCoverPhoto
1919
public function __construct(
2020
private readonly User $user,
2121
private readonly string $reason,
22-
private readonly ?int $expires = null,
22+
private readonly int $expires = 0,
2323
) {
2424
}
2525

wcfsetup/install/files/lib/system/user/command/DisableSignature.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ final class DisableSignature
1919
public function __construct(
2020
private readonly User $user,
2121
private readonly string $reason,
22-
private readonly ?int $expires = null,
22+
private readonly int $expires = 0,
2323
) {
2424
}
2525

wcfsetup/install/files/lib/system/view/user/profile/UserProfileHeaderView.class.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,8 @@ private function initManagementContextMenu(): void
154154
tooltip: 'wcf.user.profile.management',
155155
icon: FontAwesomeIcon::fromValues('gear'),
156156
),
157-
headerCssClassName: '.userProfileHeader'
157+
headerCssClassName: '.userProfileHeader',
158+
reloadContextMenu: false
158159
);
159160

160161
if (!$this->isInAccessibleGroup() || $this->user->userID == WCF::getUser()->userID) {

0 commit comments

Comments
 (0)