mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-15 22:28:14 +00:00
Fix phpstan issues.
This commit is contained in:
@@ -79,7 +79,7 @@ class ForgotPasswordController extends Controller
|
||||
$this->validateEmail($request);
|
||||
|
||||
// verify if the user is not a demo user. If so, we give him back an error.
|
||||
/** @var User $user */
|
||||
/** @var User|null $user */
|
||||
$user = User::where('email', $request->get('email'))->first();
|
||||
|
||||
if (null !== $user && $repository->hasRole($user, 'demo')) {
|
||||
|
||||
Reference in New Issue
Block a user