Skip to content

Make Iterator::key() and ::current() nullable - #3992

Open
rvanvelzen wants to merge 1 commit into
phpstan:2.3.xfrom
rvanvelzen:bug-3674
Open

rvanvelzen wants to merge 1 commit into
phpstan:2.3.xfrom
rvanvelzen:bug-3674

Conversation

@rvanvelzen

Copy link
Copy Markdown
Contributor

Potential fix for phpstan/phpstan#3674

However, foreach doesn't work as I'd like becuase of ObjectType::getIterableKeyType() and ::getIterableValueType().

Unfortunately I don't have any time left right now to figure out the right way forward. Hopefully someone else does. Otherwise just close this :)

@ondrejmirtes
ondrejmirtes changed the base branch from 2.1.x to 2.3.x October 31, 2026 14:25
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.

1 participant