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

Return types for methods implemented for Iterator interface #30

Merged
merged 1 commit into from
Apr 5, 2022
Merged

Return types for methods implemented for Iterator interface #30

merged 1 commit into from
Apr 5, 2022

Conversation

Vedmak
Copy link
Contributor

@Vedmak Vedmak commented Mar 31, 2022

Using this library with PHP 8.1 results in error like "Return type of Genkgo\Xsl\Xpath\Lexer::current() should be compatible with Iterator::current(): mixed"

I have added return types for methods inherited from Iterator interface in Lexer class and it looks like the problem is now solved.

@frederikbosch frederikbosch merged commit 7c4c450 into genkgo:master Apr 5, 2022
@frederikbosch
Copy link
Contributor

Merci

@frederikbosch
Copy link
Contributor

You can use version 1.1.0 for full PHP 8.1 support. It contains multiple additional fixes.

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

Successfully merging this pull request may close these issues.

2 participants