Skip to content

Conversation

@samsonasik
Copy link
Member

If it already return typed Generator, don't use @return Iterator, as it will cause phpstan notice, see

PHPDoc tag @return with type Iterator<mixed, string> is not subtype of native type Generator.

see https://phpstan.org/r/c8a79da7-2fa3-49f2-9388-c8f5b84d9b53

@samsonasik
Copy link
Member Author

Fixed 🎉

@samsonasik
Copy link
Member Author

All checks have passed 🎉 @TomasVotruba I am merging it ;)

@samsonasik samsonasik merged commit 76dc419 into main Sep 16, 2025
49 checks passed
@samsonasik samsonasik deleted the return-tyepd branch September 16, 2025 14:04
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