We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
There is a number of previous issues regarding this (#327, #639, #1167, #2049, #872), but here are summarized results:
autocompletion = visible in dropdown, completed on ctrl+space declaration = visible on ctrl+hover, goes to declaration on ctrl+click or ctrl+B {% set c1 = constant('ROOT_CONST') %} -- ok, full autocompletion + declaration {% set c2 = constant('RootEnum::FOO') %} -- nothing {% set c3 = constant('RootClass::FOO') %} -- declaration, autocompletion only after :: {% set c4 = constant('BugDemo\\NAMESPACED_CONST') %} -- nothing {% set c5 = constant('\\BugDemo\\NAMESPACED_CONST') %} -- nothing {% set c6 = constant('BugDemo\\NamespacedEnum::FOO') %} -- nothing {% set c7 = constant('\\BugDemo\\NamespacedEnum::FOO') %} -- nothing {% set c8 = constant('BugDemo\\NamespacedClass::FOO') %} -- declaration, autocompletion only after :: {% set c9 = constant('\\BugDemo\\NamespacedClass::FOO') %} -- declaration, autocompletion only after :: {# @var rootClass RootClass #} {% set c10 = constant('FOO', rootClass) %} -- nothing {# @var namespacedClass BugDemo\NamespacedClass #} {% set c11 = constant('FOO', namespacedClass) %} -- nothing
namespace { const ROOT_CONST = 'const'; class RootClass { const FOO = 'in class'; } enum RootEnum: string { case FOO = 'enum case'; } } namespace BugDemo { const NAMESPACED_CONST = 'const'; class NamespacedClass { const FOO = 'in class'; } enum NamespacedEnum: string { case FOO = 'enum case'; } }
Here's what needs to be done
::
constant(name, object)
object
The text was updated successfully, but these errors were encountered:
#2249 #2049 rebuild Twig constant completion and navigation and suppo…
d4c3f8f
…rting enums
b586f00
Merge pull request #2346 from Haehnchen/feature/twig-constant
b358ff0
#2249 #2049 rebuild Twig constant completion and navigation and supporting enums
No branches or pull requests
There is a number of previous issues regarding this (#327, #639, #1167, #2049, #872), but here are summarized results:
Here's what needs to be done
::
in constant()constant(name, object)
ifobject
's type is knownThe text was updated successfully, but these errors were encountered: