@@ -113,7 +113,7 @@ public function testNoTicket(): void
113113 $ c = new Controller \CAS ($ this ->config );
114114 $ c ->setAuthState (new class () extends Auth \State {
115115 /** @return array<mixed>|null */
116- public static function loadState (string $ id , string $ stage , bool $ allowMissing = false ): ? array
116+ public static function loadState (string $ id , string $ stage , bool $ allowMissing = false ): array
117117 {
118118 return [];
119119 }
@@ -143,7 +143,7 @@ public function testUnknownAuthSource(): void
143143 $ c = new Controller \CAS ($ this ->config );
144144 $ c ->setAuthState (new class () extends Auth \State {
145145 /** @return array<mixed>|null */
146- public static function loadState (string $ id , string $ stage , bool $ allowMissing = false ): ? array
146+ public static function loadState (string $ id , string $ stage , bool $ allowMissing = false ): array
147147 {
148148 return [CAS ::AUTHID => 'somethingElse ' ];
149149 }
@@ -172,7 +172,7 @@ public function testNormalOperation(): void
172172 $ c = new Controller \CAS ($ this ->config );
173173 $ c ->setAuthState (new class () extends Auth \State {
174174 /** @return array<mixed>|null */
175- public static function loadState (string $ id , string $ stage , bool $ allowMissing = false ): ? array
175+ public static function loadState (string $ id , string $ stage , bool $ allowMissing = false ): array
176176 {
177177 return [CAS ::AUTHID => 'something ' ];
178178 }
@@ -193,7 +193,7 @@ public function authenticate(array &$state): void
193193 }
194194
195195
196- public static function getById (string $ authId , ?string $ type = null ): ? Auth \Source
196+ public static function getById (string $ authId , ?string $ type = null ): Auth \Source
197197 {
198198 return new class () extends CAS {
199199 public function __construct ()
0 commit comments