@@ -87,7 +87,7 @@ public function testOtpNoOtp(): void
8787
8888 $ c = new Controller \Yubikey ($ this ->config , $ this ->session );
8989 $ c ->setAuthState (new class () extends Auth \State {
90- public static function loadState (string $ id , string $ stage , bool $ allowMissing = false ): ? array
90+ public static function loadState (string $ id , string $ stage , bool $ allowMissing = false ): array
9191 {
9292 return [];
9393 }
@@ -114,7 +114,7 @@ public function testOtpFailed(): void
114114
115115 $ c = new Controller \Yubikey ($ this ->config , $ this ->session );
116116 $ c ->setAuthState (new class () extends Auth \State {
117- public static function loadState (string $ id , string $ stage , bool $ allowMissing = false ): ? array
117+ public static function loadState (string $ id , string $ stage , bool $ allowMissing = false ): array
118118 {
119119 return [];
120120 }
@@ -147,7 +147,7 @@ public function testOtpSucceeded(): void
147147
148148 $ c = new Controller \Yubikey ($ this ->config , $ this ->session );
149149 $ c ->setAuthState (new class () extends Auth \State {
150- public static function loadState (string $ id , string $ stage , bool $ allowMissing = false ): ? array
150+ public static function loadState (string $ id , string $ stage , bool $ allowMissing = false ): array
151151 {
152152 return [];
153153 }
@@ -180,7 +180,7 @@ public function testOtpUnexpectedException(): void
180180
181181 $ c = new Controller \Yubikey ($ this ->config , $ this ->session );
182182 $ c ->setAuthState (new class () extends Auth \State {
183- public static function loadState (string $ id , string $ stage , bool $ allowMissing = false ): ? array
183+ public static function loadState (string $ id , string $ stage , bool $ allowMissing = false ): array
184184 {
185185 return [];
186186 }
0 commit comments