-
Notifications
You must be signed in to change notification settings - Fork 11.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[5.1] Remove redundant function call #12999
Conversation
What does this do please? |
@GrahamCampbell |
If it's not broken don't fix it. Had too many broken PRs lately. |
This is a leftover from the first implementation which wasn't making any sense:
Then it was fixed five months later in #1712, see how this
(Then, it was again modified #2871 to return the user as stated in the phpdoc.) So, it's not a redundant function call but rather a leftover from the first implementation which was entirely wrong. |
The corresponding test cases are not understood https://github.com/laravel/framework/blob/5.1/tests/Auth/AuthGuardTest.php#L245 the |
Just an overlook I suppose. The test wasn't impacted as the More importantly:
|
@taylorotwell What should be the behavior when |
Thoughts? I'm ready to submit code for this, but I have to know what should be thrown if ever |
The
login
function will callupdateSession
function which will excutehttps://github.com/laravel/framework/blob/5.1/src/Illuminate/Auth/Guard.php#L432