[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
loginfunction will callupdateSessionfunction which will excutehttps://github.com/laravel/framework/blob/5.1/src/Illuminate/Auth/Guard.php#L432