-
Notifications
You must be signed in to change notification settings - Fork 10
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
using ->end() doesn't give RootNode's typehint to the IDE #6
Comments
Hi @sawirricardo, This should be taken care of via these What IDE are you using? If you can get it to understand those, you should get them in auto-complete. Here is what it looks like in IntelliJ IDEA or PHPStorm: |
Using vscode with laravel-ide-helper. maybe due to the ide-helper package? it seems vscode doesnt take the things |
I did some quick Googling and found this: neild3r/vscode-php-docblocker#120. I'm going to close this as I don't believe it's a Hyrule issue. Let me know if that VSCode plugin helps! |
@bezhermoso Oops, Actually, I've installed the docblocker ext too, but it's not working. Is it possible to simply add the return docblock to include |
Hi @sawirricardo, VSCode auto-complete should work better now: #1 |
since
->end()
return the CompoundNode, instead of RootNode, it didn't give access to method like ->string(), ->numeric etcMaybe we can use something like public function end(): CompoundNode|RootNode so we can have access to that method.
Thoughts?
The text was updated successfully, but these errors were encountered: