From 5e5fd432333221d08671cc8a13a3e62d63610e44 Mon Sep 17 00:00:00 2001 From: slawkens Date: Wed, 21 Jan 2026 20:14:58 +0100 Subject: [PATCH] Fix phpstan --- system/src/TwoFactorAuth/TwoFactorAuth.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;