Skip to content
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

Add @var type hinting support #14

Closed
moetelo opened this issue Apr 9, 2024 · 0 comments · Fixed by #16
Closed

Add @var type hinting support #14

moetelo opened this issue Apr 9, 2024 · 0 comments · Fixed by #16
Assignees
Labels
feature New feature or request

Comments

@moetelo
Copy link
Owner

moetelo commented Apr 9, 2024

Support completions/definitions for this:

{# @var bar \Foo\Bar #}

<div>{{ bar.something }}</div>
<div>{{ bar.getSomething }}</div>
<div>{{ bar.getSomething() }}</div>

Note this: twigphp/Twig#4009 (comment)

@moetelo moetelo added the feature New feature or request label Apr 9, 2024
@moetelo moetelo self-assigned this Apr 10, 2024
moetelo added a commit that referenced this issue Apr 15, 2024
`var_declaration`: grammar for `&` `|`, `incomplete_type` for completion, etc
completion for properties and methods of type-hinted var

closes #14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant