webfactory / piwik-bundle

Symfony Bundle with twig-function for the Matomo (fka Piwik) tracking code
MIT License
39 stars 16 forks source link

Symfony deprecation #38

Closed bretrzaun closed 2 years ago

bretrzaun commented 2 years ago

Using Symfony 5.4 we see the following deprecation message when running our tests: 1x: Method "Twig\Extension\ExtensionInterface::getFunctions()" might add "array" as a native return type declaration in the future. Do the same in implementation "Webfactory\Bundle\PiwikBundle\Twig\Extension" now to avoid errors or add an explicit @return annotation to suppress this message.

Should be any easy fix. Do you want a PR for that?

mpdude commented 2 years ago

Sorry @bretrzaun, I somehow missed this issue. #39 will address it.