8000 Fix collisions between $config property of OAuth client and HTTP client by weierophinney · Pull Request #11 · laminas/laminas-oauth · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Fix collisions between $config property of OAuth client and HTTP client #11

Merged
merged 1 commit into from
Mar 12, 2021

Conversation

weierophinney
Copy link
Member

2.1.0 made changes to internal protected members, refactoring those that were prefixed with an underscore to remove the underscore.
Unfortunately, one of these, Laminas\OAuth\Client::$config, is also defined in the parent Laminas\Http\Client, and the two were of different types, leading to type errors (see laminas/laminas-twitter#6).

I've audited to determine what collisions exist, and this was the only one found.
As such, I've renamed the property, as well as all references to it internally, to avoid the collision.

…t HTTP client

2.1.0 made changes to internal protected members, refactoring those that were prefixed with an underscore to remove the underscore.
Unfortunately, one of these, `Laminas\OAuth\Client::$config`, is also defined in the parent `Laminas\Http\Client`, and the two were of different types, leading to type errors (see laminas/laminas-twitter#6).

I've audited to determine what collisions exist, and this was the only one found.
As such, I've renamed the property, as well as all references to it internally, to avoid the collision.

Signed-off-by: Matthew Weier O'Phinney <matthew@weierophinney.net>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
BC Break Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0