The variable $userId does not exist. Did you forget to declare it?
This check marks access to variables or properties that have not been declared yet. While PHP
has no explicit notion of declaring a variable, accessing it before a value is assigned
to it is most likely a bug.
Loading history...
43
$user = User::query()->findOrFail($userId);
44
} catch (Throwable $exception) {
45
return false;
46
}
47
if (Cache::get("password.reset.{$userId}") != $token) {
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.