Skip to content

Commit

Permalink
Missing type declaration add to NewPasswordController.php (#449)
Browse files Browse the repository at this point in the history
Add missing type to get 100% type coverage... 🚀
  • Loading branch information
ashokbaruaakas authored Jan 21, 2025
1 parent 2679a75 commit 2a47640
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace App\Http\Controllers\Auth;

use App\Http\Controllers\Controller;
use App\Models\User;
use Illuminate\Auth\Events\PasswordReset;
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request;
Expand Down Expand Up @@ -40,7 +41,7 @@ public function store(Request $request): RedirectResponse
// database. Otherwise we will parse the error and return the response.
$status = Password::reset(
$request->only('email', 'password', 'password_confirmation', 'token'),
function ($user) use ($request) {
function (User $user) use ($request) {
$user->forceFill([
'password' => Hash::make($request->password),
'remember_token' => Str::random(60),
Expand Down

0 comments on commit 2a47640

Please sign in to comment.