Skip to content

Incorrectly prefixed composer/InstalledVersion.php array_merge call_user_func_array #1033

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
kkmuffme opened this issue May 16, 2024 · 2 comments

Comments

@kkmuffme
Copy link

Bug report

Question Answer
PHP-Scoper version 0.18.11
PHP version 7.4-8.3
Platform with version CentOS 9

Composer 2.7.6

InstalledVersions.php incorrectly prefixed array_merge with the prefix:

return array_keys(array_flip(\call_user_func_array('array_merge', $packages)));

to

return \array_keys(\array_flip(\call_user_func_array('My\\Foo\\array_merge', $packages)));

This can be fixed with a custom patcher easily, however since this affects all php-scoper users, I think it makes sense to fix it in scoper directly to NOT prefix this

This worked correctly before
#889 (as a side effect of #864) was implemented.

@theofidry
Copy link
Member

theofidry commented May 16, 2024

I could indeed reproduce the issue on 0.18.11, it is however fixed on main. I hope to release it within the week or next week.

@theofidry
Copy link
Member

Released in 0.18.12

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants