-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
Do not require variable too exist in IntelliJ-type phpdoc #238
Comments
This is indeed an issue. I've also previously encountered it and it seems to only manifest in certain circumstances (i.e. sometimes you can get it working). The reason this happens is that when you type The bad news is that this is rather hard to fix for me as everything depends on php-parser, but the good news is that in the upcoming version 3.0.0, it grew some additional error recovery for precisely these kind of statements, so I may get lucky and get it working for free as soon as I upgrade (which will happen when it becomes stable) [1]. |
Good news! After upgrading the core to php-parser 3.0 [1], this problem appears to be solved. The fix will be included in the upcoming 2.0 release. [1] https://github.com/php-integrator/core/commit/ad15e1c337289603856ee9cf542562a4fe32100c |
@Gert-dev Looking forward to the 2.0 release. 😄 |
I've just released 2.0! I'll close this as it should be solved, but if it isn't, feel free to give me a shout here. |
Hello! Currently, the php-integrator-base requires a variable to be defined before being able to give autocomplete, if the variable is documented IntelliJ-type doc.
I would like this requirement to be removed so one can define a variable in IntelliJ-type phpdocs and expect them to be resolved.
Example:
view.php
The text was updated successfully, but these errors were encountered: