Skip to content

Fix array_walk_recursive callback sugnature in PHP 8.0#163

Open
the-csaba wants to merge 1 commit intopetenelson:developfrom
the-csaba:feature/fix-array_walk-callback
Open

Fix array_walk_recursive callback sugnature in PHP 8.0#163
the-csaba wants to merge 1 commit intopetenelson:developfrom
the-csaba:feature/fix-array_walk-callback

Conversation

@the-csaba
Copy link
Copy Markdown

In PHP 8.0 the array_walk and the array_walk_recursive functions callback signature changed.
They does not accept reference for the second (or third) parameter anymore.
Unfortunately this fact only documented for the array_walk function.
See here: https://www.php.net/manual/en/function.array-walk.php#refsect1-function.array-walk-changelog

In PHP 8.0 the `array_walk` and the `array_walk_recursive` functions callback signature changed.
They does not accept reference for the second (or third) parameter. 
Unfortunately this fact only documented for the `array_walk` function. 
See here: https://www.php.net/manual/en/function.array-walk.php#refsect1-function.array-walk-changelog
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