phpstan / phpstan-symfony

Symfony extension for PHPStan
MIT License
698 stars 89 forks source link

Fix phpdoc of Twig* callable #358

Closed VincentLanglet closed 1 year ago

VincentLanglet commented 1 year ago

This is a Backport of https://github.com/twigphp/Twig/pull/3856

Context can be found here too https://github.com/phpstan/phpstan/discussions/9567

This will solve the issue even if

ondrejmirtes commented 1 year ago

symfony does not release a new twig version

I'm pretty sure Symfony will release a new Twig version :)

People does not use the latest version (when it's released)

They should use the latest version!

Anyway, I don't see a reason for this stub if the fix is already merged over in the original repo. Thanks for understanding.

VincentLanglet commented 1 year ago

I thought this was the same than https://github.com/phpstan/phpstan-symfony/pull/318