Skip to content

Commit 377cb5e

Browse files
authored
docs: fix example code of extending controller
1 parent 0bf28b2 commit 377cb5e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

docs/customization.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,11 @@ updates that might happen in the controllers.
133133
namespace App\Controllers;
134134

135135
use CodeIgniter\Shield\Controllers\LoginController as ShieldLogin;
136+
use CodeIgniter\HTTP\RedirectResponse;
136137

137138
class LoginController extends ShieldLogin
138139
{
139-
public function logoutAction()
140+
public function logoutAction(): RedirectResponse
140141
{
141142
// new functionality
142143
}

0 commit comments

Comments
 (0)