Skip to content

fix: allow configuration of php-http/socket-client >=2.0 #65

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

Merged
merged 1 commit into from
Aug 19, 2022

Conversation

dbu
Copy link
Contributor

@dbu dbu commented Aug 19, 2022

wrap up #62 - Allow configuration of php-http/socket-client >=2.0 with HttplugBundle

fix #62

@dbu dbu force-pushed the fix-constructor-bc branch from bc10601 to b573b9c Compare August 19, 2022 15:33
@dbu
Copy link
Contributor Author

dbu commented Aug 19, 2022

@Nyholm do you agree that this change makes sense? i think this will solve the original issue that HttplugBundle uses the version 1 signature of the constructor and therefore the $config is ignored (because its the second argument, but the bundle looks at first or 3rd argument).

@Nyholm
Copy link
Member

Nyholm commented Aug 19, 2022

I dont really understand why we ever had $config1 = [], $config2 = null, array $config = []

To remove all but 1 makes sense. Im happy to deprecate it.

@dbu dbu merged commit 7432bb7 into 2.x Aug 19, 2022
@dbu dbu deleted the fix-constructor-bc branch August 19, 2022 16:02
@dbu
Copy link
Contributor Author

dbu commented Aug 19, 2022

i think some refactoring when moving from version 1 to 2 got messed up... when we go to version 3, we can remove all but the first argument.

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.

3 participants