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

php 8.0: Change call in ClassMapAutoloader to preserve original behaviour #74

Closed
wants to merge 1 commit into from

Conversation

glensc
Copy link
Contributor

@glensc glensc commented Mar 13, 2021

In PHP8 the third param of array_walk ($userdata) is automatically
passed by value thus calling a function that expects pass by reference
as the third param is not possible.
Simply changing the array_walk to a foreach loop allows us to fulfill
the pass by reference signature.

Extracted changes made by @Megatherium from #32

In PHP8 the third param of array_walk ($userdata) is automatically
passed by value thus calling a function that expects pass by reference
as the third param is not possible.
Simply changing the array_walk to a foreach loop allows us to fulfill
the pass by reference signature.
@glensc glensc changed the title Changed call in ClassMapAutoloader to preserve original behaviour Change call in ClassMapAutoloader to preserve original behaviour Mar 13, 2021
@glensc glensc changed the title Change call in ClassMapAutoloader to preserve original behaviour php 8.0: Change call in ClassMapAutoloader to preserve original behaviour Mar 13, 2021
@glensc glensc marked this pull request as ready for review March 13, 2021 15:14
@glensc
Copy link
Contributor Author

glensc commented Mar 15, 2021

This branch commit was moved into #67

@glensc glensc closed this Mar 15, 2021
@glensc glensc deleted the array-walk branch March 15, 2021 12:00
@glensc glensc mentioned this pull request Mar 16, 2021
32 tasks
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