Skip to content

No function signature for twig functions/filters declared using static class function #401

@iamake

Description

@iamake

I'm not sure if this is the right place to report and whether this is a bug.

See an example at doctrine/doctrine-bundle/Twig/DoctrineExtension.php

public function getFilters()
{
    return array(
        new \Twig_SimpleFilter('doctrine_minify_query', array($this, 'minifyQuery')),
        new \Twig_SimpleFilter('doctrine_pretty_query', 'SqlFormatter::format'),
        new \Twig_SimpleFilter('doctrine_replace_query_parameters', array($this, 'replaceQueryParameters')),
    );
}

As you can see there is no function signature for doctrine_pretty_query but for others as in the below screenshot.

image

This applies to both functions and filters.

PHPStrom: 8.0.2 PS-139.732
Symfony Plugin: 0.11.79

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions