Skip to content

[Twig] Add description to PhpTyes @var syntax #439

@mekras

Description

@mekras

There is a great feature but it can be more useful with ability to describe variable like this:

{# @var foo \Foo\Bar description of this variable #}

Currently this is not supported. Without description:

Without description

With description:

With description

And will be very nice if the developer can write for template designer something like this:

{##
 # Some description of template, where and when it used
 #
 # @var foo \Some\Foo\Class description of variable "foo"
 # @var var \Some\Bar\Class description of variable "bar"
 #}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions