-
-
Notifications
You must be signed in to change notification settings - Fork 419
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
Add extension for app return type, including test cases. #431
Conversation
661c9ac
to
d1ca73b
Compare
I don't see a reason for having a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi,
Thank you for the PR! I left some comments.
Thanks for the feedback. I have cleaned up the code and try to resolve I still have two cases with
In the first case I cannot see another option. What are your thoughts on this? |
a12828f
to
7a0248b
Compare
894589f
to
4a59cb2
Compare
I have rebased and updated to be using |
Thank you @troelsselch ! Good first contribution! |
I have added a simple return type extension for the
app()
helper.Fully qualified classes will be resolved to the class itself. Unknown types, e.g. 'sentry' or 'db', will be resolved to
MixedType
.This will allow checking for method calls directly on app(), so that e.g.
can be simplified to
and still be verified by larastan.