-
-
Notifications
You must be signed in to change notification settings - Fork 123
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
Remove return type for make() #287
Conversation
Remove static return type. See lorisleiva#285 (comment)
Thank you! 🍺 Two small things before merging:
|
Done! |
Thanks! |
This has broken IDE autocompletion for me. Now PhpStorm thinks I deliberately don't use the |
@austincarpenter Hi there, this was a partial revert of #285 which was only published a |
@lorisleiva Prior to #285 it was working due to the docblock, also after due to the return type and now post #287 it's not due to neither a docblock nor a return type. |
Gotcha, so we just need the docblock back right? If so, would you be able to submit a small PR for this and I'll get that merged/patched immediately? |
The make function can't define a return type, because the result could be a Decorator, or the actual action. However, without docblocks or type-hinting, PHPStorm ends up providing garbage autocomplete. The solution is to instead add back a phpdoc comment for this specific use case. See lorisleiva#285 and lorisleiva#287 for more details.
The make function can't define a return type, because the result could be a Decorator, or the actual action. However, without docblocks or type-hinting, PHPStorm ends up providing incorrect autocomplete information. The solution is to instead add back a phpdoc comment for this specific use case. See lorisleiva#285 and lorisleiva#287 for more details.
The make function can't define a return type, because the result could be a Decorator, or the actual action. However, without docblocks or type-hinting, PHPStorm ends up providing incorrect autocomplete information. The solution is to instead add back a phpdoc comment for this specific use case. See lorisleiva#285 and lorisleiva#287 for more details.
The make function can't define a return type, because the result could be a Decorator, or the actual action. However, without docblocks or type-hinting, PHPStorm ends up providing incorrect autocomplete information. The solution is to instead add back a phpdoc comment for this specific use case. See lorisleiva#285 and lorisleiva#287 for more details.
The make function can't define a return type, because the result could be a Decorator, or the actual action. However, without docblocks or type-hinting, PHPStorm ends up providing incorrect autocomplete information. The solution is to instead add back a phpdoc comment for this specific use case. See #285 and #287 for more details.
Apologies for the delay on this one. Thanks @TaylorWilton @lorisleiva 👏 |
Remove static return type. See #285 (comment)