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

[Console] Support with PHP8.1 #42415

Closed
Jeckerson opened this issue Aug 6, 2021 · 1 comment
Closed

[Console] Support with PHP8.1 #42415

Jeckerson opened this issue Aug 6, 2021 · 1 comment
Labels

Comments

@Jeckerson
Copy link

Description
By using symfony/console package inside Zephir, we are having fatal error:

Fatal error: During inheritance of IteratorAggregate: Uncaught ErrorException: Return type of Symfony\Component\Console\Helper\HelperSet::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /srv/vendor/symfony/console/Helper/HelperSet.php:94

Example
Code example can be found here
https://github.com/zephir-lang/zephir/blob/7315f84929e04a0f52b276edd65cfd3673327f4a/Library/Console/Command/FullCleanCommand.php#L39

@wouterj
Copy link
Member

wouterj commented Aug 6, 2021

Thanks for the report! This is however already fixed by #42260 . Please use dev versions when testing dev PHP versions.

@wouterj wouterj closed this as completed Aug 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants