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

getFunctions() should return array, not iterable #182

Open
tacman opened this issue Nov 10, 2023 · 0 comments
Open

getFunctions() should return array, not iterable #182

tacman opened this issue Nov 10, 2023 · 0 comments

Comments

@tacman
Copy link

tacman commented Nov 10, 2023

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 added a commit to tacman/Stenope that referenced this issue Nov 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant