Return type of function in Typo3ConditionFunctionsProvider incompatible with ExpressionFunctionProviderInterface

Issue #67 resolved
Raphael STOLLE created an issue

Hello,

With nng/nnrestapi 2.0.3

When upgrading from typo3 version 12.4.8 to typo3 version 12.4.10, I now have the following error in the backend

Fatal error: Declaration of Nng\Nnhelpers\ExpressionLanguage\FunctionsProvider\Typo3ConditionFunctionsProvider::getFunctions() must be compatible with Symfony\Component\ExpressionLanguage\ExpressionFunctionProviderInterface::getFunctions(): array in /var/www/html/vendor/nng/nnhelpers/Classes/ExpressionLanguage/FunctionsProvider/Typo3ConditionFunctionsProvider.php on line 17

In composer.json of typo3/cms-core version 12.4.8

"symfony/expression-language": "^6.3",

In version 12.4.10

"symfony/expression-language": "^6.4 || ^7.0",

The return type declaration of Symfony\Component\ExpressionLanguage\ExpressionFunctionProviderInterface->getFunctions() changed in symfony/expression-language version 7.0 and cause this error

Thank you,

Raphael