Skip to content

Commit fb5484d

Browse files
authored
Merge pull request #776 from codeigniter4/datamweb-docs-fix-extend-controllers
docs: fix example code of extending controller
2 parents 0bf28b2 + 377cb5e commit fb5484d

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)