Skip to content

[Console] Support with PHP8.1 #42415

Closed
Closed
@Jeckerson

Description

@Jeckerson

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions