Skip to content

Commit 2a47640

Browse files
authoredJan 21, 2025
Missing type declaration add to NewPasswordController.php (#449)
Add missing type to get 100% type coverage... 🚀
1 parent 2679a75 commit 2a47640

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎stubs/default/app/Http/Controllers/Auth/NewPasswordController.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
namespace App\Http\Controllers\Auth;
44

55
use App\Http\Controllers\Controller;
6+
use App\Models\User;
67
use Illuminate\Auth\Events\PasswordReset;
78
use Illuminate\Http\RedirectResponse;
89
use Illuminate\Http\Request;
@@ -40,7 +41,7 @@ public function store(Request $request): RedirectResponse
4041
// database. Otherwise we will parse the error and return the response.
4142
$status = Password::reset(
4243
$request->only('email', 'password', 'password_confirmation', 'token'),
43-
function ($user) use ($request) {
44+
function (User $user) use ($request) {
4445
$user->forceFill([
4546
'password' => Hash::make($request->password),
4647
'remember_token' => Str::random(60),

0 commit comments

Comments
 (0)