Skip to content
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

Fix not respecting return type of overridden Request::user() method. #1861

Open
wants to merge 1 commit into
base: 2.x
Choose a base branch
from

Conversation

mad-briller
Copy link
Contributor

  • Added or updated tests

closes #1718

Changes

Change RequestUserExtension to use the specific type of an overridden Request::user() method

@calebdw
Copy link
Contributor

calebdw commented Feb 19, 2024

You beat me to this!

Copy link
Collaborator

@canvural canvural left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks.

Just left a one comment. Also the branch has merge conflicts now. That's why it is a good idea to put any test case in GeneralTypeTest to at the end of the file. The order of the tests do not matter at all 😊

src/ReturnTypes/RequestUserExtension.php Show resolved Hide resolved
@calebdw
Copy link
Contributor

calebdw commented Feb 20, 2024

Also the branch has merge conflicts now. That's why it is a good idea to put any test case in GeneralTypeTest to at the end of the file. The order of the tests do not matter at all 😊

I get that order does not matter (other than for aesthetics), but you would still have merge conflicts if two separate PRs placed files in the same spot at the end of the file.

@mad-briller
Copy link
Contributor Author

i'll get to this proper when i have some time after work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrong return type when overwriting Request::user()
3 participants