File tree Expand file tree Collapse file tree 3 files changed +5
-9
lines changed Expand file tree Collapse file tree 3 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ public function loginById($userId): void;
5050 *
5151 * @see https://codeigniter4.github.io/CodeIgniter4/extending/authentication.html
5252 */
53- public function logout (): bool ;
53+ public function logout (): void ;
5454
5555 /**
5656 * Returns the currently logged in user.
Original file line number Diff line number Diff line change @@ -189,11 +189,9 @@ public function loginById($userId): void
189189 /**
190190 * Logs the current user out.
191191 */
192- public function logout (): bool
192+ public function logout (): void
193193 {
194194 $ this ->user = null ;
195-
196- return true ;
197195 }
198196
199197 /**
Original file line number Diff line number Diff line change @@ -660,10 +660,10 @@ public function loginById($userId): void
660660 /**
661661 * Logs the current user out.
662662 */
663- public function logout (): bool
663+ public function logout (): void
664664 {
665665 if ($ this ->user === null ) {
666- return true ;
666+ return ;
667667 }
668668
669669 helper ('cookie ' );
@@ -686,11 +686,9 @@ public function logout(): bool
686686 $ this ->rememberModel ->purgeRememberTokens ($ this ->user );
687687
688688 // Trigger logout event
689- $ result = Events::trigger ('logout ' , $ this ->user );
689+ Events::trigger ('logout ' , $ this ->user );
690690
691691 $ this ->user = null ;
692-
693- return $ result ;
694692 }
695693
696694 /**
You can’t perform that action at this time.
0 commit comments