Replies: 1 comment
-
DocBlock-only variable can also be treated as "warning" since it may not exists. So, user still aware that it is merely depend on doc block information that not be up to date. |
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
-
Usually we have standalone PHP document or disconnected document such as template. In this case,
phpactor
may not find the connection of variable definition and usage that led to diagnostic error. Fortunately, doc block can be used to annotate the variables and serve as a shortcut to validate variable existence.So, this one will be a diagnostic error.
But this one wouldn't.
Specifically, the proposal should goes on this codes as I understand.
Beta Was this translation helpful? Give feedback.
All reactions