diff --git a/system/src/TwoFactorAuth/TwoFactorAuth.php b/system/src/TwoFactorAuth/TwoFactorAuth.php index d6e74d0e..ae934279 100644 --- a/system/src/TwoFactorAuth/TwoFactorAuth.php +++ b/system/src/TwoFactorAuth/TwoFactorAuth.php @@ -191,7 +191,7 @@ class TwoFactorAuth return $otp; } - public function appDisplayEnable(string $secret, TOTP $otp = null, array $errors = []): void + public function appDisplayEnable(string $secret, ?TOTP $otp = null, array $errors = []): void { global $twig;