Stenope icon indicating copy to clipboard operation
Stenope copied to clipboard

getFunctions() should return array, not iterable

Open tacman opened this issue 1 year ago • 0 comments

I bumped to Symfony 6.4 beta 3, and the getFunctions() function throws an error because the Symfony interface now expects an array. Before, it did not have a return type.

interface ExpressionFunctionProviderInterface
{
    /**
     * @return ExpressionFunction[]
     */
    public function getFunctions(): array;
}

https://github.com/StenopePHP/Stenope/blob/master/src/ExpressionLanguage/ExpressionLanguageProvider.php

tacman avatar Nov 10 '23 18:11 tacman