Skip to content

Commit 1abb88a

Browse files
authored
[12.x] Types: PasswordBroker::reset (#55109)
* narrow return type from mixed to string * narrow return type from mixed to string for facade
1 parent fd0242a commit 1abb88a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Illuminate/Auth/Passwords/PasswordBroker.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public function sendResetLink(#[\SensitiveParameter] array $credentials, ?Closur
9191
*
9292
* @param array $credentials
9393
* @param \Closure $callback
94-
* @return mixed
94+
* @return string
9595
*/
9696
public function reset(#[\SensitiveParameter] array $credentials, Closure $callback)
9797
{

src/Illuminate/Support/Facades/Password.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* @method static string getDefaultDriver()
1010
* @method static void setDefaultDriver(string $name)
1111
* @method static string sendResetLink(array $credentials, \Closure|null $callback = null)
12-
* @method static mixed reset(array $credentials, \Closure $callback)
12+
* @method static string reset(array $credentials, \Closure $callback)
1313
* @method static \Illuminate\Contracts\Auth\CanResetPassword|null getUser(array $credentials)
1414
* @method static string createToken(\Illuminate\Contracts\Auth\CanResetPassword $user)
1515
* @method static void deleteToken(\Illuminate\Contracts\Auth\CanResetPassword $user)

0 commit comments

Comments
 (0)