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

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

Closed
iamake opened this issue Dec 12, 2014 · 2 comments
Labels

Comments

@iamake
Copy link

iamake commented Dec 12, 2014

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

@Haehnchen
Copy link
Owner

string value resolve not supported right now.
notice fix together with #314

@iamake
Copy link
Author

iamake commented Dec 30, 2014

Thanks for the update !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants