Psalm's generics when using App::make(), app() or resolve() #46907
Replies: 1 comment
-
Interesting why non of the helper files got the type declarations adjustments 🤔 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Knowing the variable instance really helps me to easily find the methods.
The old way is to force it with
@var
:Although there are cases where we call the method directly, especially when using octane. Constructor args injection isn't good as it is in memory:
Meanwhile, when using Psalm plugin in VSCode, it can automatically solve this by just adding the
@template
, I have a modified version of theapp()
docblock and here's how it looks before typing the arrow key:And here's how it looks when hovering over the variable:
Would it be possible to push my changes through the framework? I don't want to submit the pull request yet.
Beta Was this translation helpful? Give feedback.
All reactions