Skip to content

Conversation

@rvanvelzen
Copy link
Contributor

While working on #1354 I noticed that the callback parameters for array_walk were not completely correct.

As noted in the documentation:

If the optional arg parameter is supplied, it will be passed as the third parameter to the callback.

This is hard to express in the stubs so I used a similar approach as exists for array_map and array_filter.

@ondrejmirtes ondrejmirtes merged commit 4da16b3 into phpstan:1.7.x May 30, 2022
@ondrejmirtes
Copy link
Member

Thank you!

@rvanvelzen rvanvelzen deleted the array-walk branch May 30, 2022 09:39
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