Skip to content

Conversation

mnavarrocarter
Copy link
Contributor

Fixes the instantiation of Buzz client to use the new Psr17FactoryDiscovery instead of the deprecated MessageFactoryDiscovery.

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Related tickets none
Documentation none
License MIT

What's in this PR?

Change Buzz instantiator from the deprecated MessageFactoryDisvovery to the new Psr17FactoryDiscovery.

Why?

The Buzz Instantiator was using the deprectaed MessageFactoryDiscovery and this was causing an exception when attempting to instantiate Buzz using nyholm/psr7. Changed to the more modern Psr17FactoryDiscovery that does find nyholm/psr7 for Buzz.

Example Usage

Noop

Checklist

  • Updated CHANGELOG.md to describe BC breaks / deprecations | new feature | bugfix
  • Documentation pull request created (if not simply a bugfix)
Fixes the instantiation of Buzz client to use the new `Psr17FactoryDiscovery` instead of the deprecated `MessageFactoryDiscovery`.
Copy link
Contributor

@dbu dbu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we seem to not have an installation test with buzz but checking the code, the client accepts both factories since 1.0.0

@dbu dbu merged commit 19db1df into php-http:1.x Jul 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants