summaryrefslogtreecommitdiff
path: root/app/Auth.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Auth.php')
-rw-r--r--app/Auth.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/app/Auth.php b/app/Auth.php
index afbbf51272..e882459564 100644
--- a/app/Auth.php
+++ b/app/Auth.php
@@ -55,7 +55,7 @@ class Auth
*
* @return bool
*/
- public static function isAdmin(UserInterface $user = null): bool
+ public static function isAdmin(UserInterface|null $user = null): bool
{
$user ??= self::user();
@@ -70,7 +70,7 @@ class Auth
*
* @return bool
*/
- public static function isManager(Tree $tree, UserInterface $user = null): bool
+ public static function isManager(Tree $tree, UserInterface|null $user = null): bool
{
$user ??= self::user();
@@ -85,7 +85,7 @@ class Auth
*
* @return bool
*/
- public static function isModerator(Tree $tree, UserInterface $user = null): bool
+ public static function isModerator(Tree $tree, UserInterface|null $user = null): bool
{
$user ??= self::user();
@@ -102,7 +102,7 @@ class Auth
*
* @return bool
*/
- public static function isEditor(Tree $tree, UserInterface $user = null): bool
+ public static function isEditor(Tree $tree, UserInterface|null $user = null): bool
{
$user ??= self::user();
@@ -119,7 +119,7 @@ class Auth
*
* @return bool
*/
- public static function isMember(Tree $tree, UserInterface $user = null): bool
+ public static function isMember(Tree $tree, UserInterface|null $user = null): bool
{
$user ??= self::user();
@@ -136,7 +136,7 @@ class Auth
*
* @return int
*/
- public static function accessLevel(Tree $tree, UserInterface $user = null): int
+ public static function accessLevel(Tree $tree, UserInterface|null $user = null): int
{
$user ??= self::user();