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

Deprecation wrapper doesn't proxy array access correctly #7017

Closed
mrclay opened this issue Jul 7, 2014 · 1 comment

Comments

Projects
None yet
1 participant
@mrclay
Copy link
Member

commented Jul 7, 2014

Array access methods on the wrapper don't properly check for array access methods on the wrapped object. Instead they convert to property access.

This causes #6917 because the array access to session fails in twitter_api_get_access_token().

@mrclay mrclay added engine labels Jul 7, 2014

mrclay added a commit to mrclay/Elgg-leaf that referenced this issue Jul 7, 2014

fix(deprecation): the deprecation wrapper correctly handles array access
When array access is used on the wrapper, the wrapper now checks the wrapped
object for ArrayAccess. If found, it uses that instead of property access.
This also emits deprecation warnings on array access, which were left out
accidentally.

Fixes Elgg#7017

mrclay added a commit to mrclay/Elgg-leaf that referenced this issue Jul 7, 2014

fix(deprecation): the deprecation wrapper correctly handles array access
When array access is used on the wrapper, the wrapper now checks the wrapped
object for ArrayAccess. If found, it uses that instead of property access.
This also emits deprecation warnings on array access, which were left out
accidentally.

Fixes Elgg#7017, Elgg#6917
@mrclay

This comment has been minimized.

Copy link
Member Author

commented Jul 7, 2014

Fix: #7018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.