-
-
Notifications
You must be signed in to change notification settings - Fork 137
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 support for new types
tag
#2396
Comments
#2396 add experimental support for extracting Twig "types" variables with types
@Haehnchen, I'd like to align TwigQI's support for types with the plugin's since we use both at AlisQI. Do you have plans to add support for nullable types? Would you prefer What about Or do you prefer to align with PHPStan-style I'd love to have a chat with you about this if you want. |
@Haehnchen I'd love to get your feedback on my previous comment. |
@Haehnchen Would it be possible to make the types in {% types {
payment: 'App\Payment',
} %} I'd like to CMD + Click on the |
Twig has just added a new
types
tag which will be the official way of documenting variable types.This can eventually replace the community convention of using
{# @var #}
comments.Aside from official support and specification, comments have one major downside: they aren't added to the AST, so Twig extensions can't use them.
The text was updated successfully, but these errors were encountered: