-
-
Notifications
You must be signed in to change notification settings - Fork 78
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
Regression of Issue #51 - XmlLocation response not handling multiple tags of the same name correctly #82
Comments
…th the same name being in a proper numerically indexed array rather than having the first element having its child elements as non-numeric keys.
Fixing issue #82 to address regression for handling elements with the sa...
Was this ever merged back in? I'm using version 0.5 now and this issue is present. I can confirm that the fix above resolves the issue. @sprak3000 did you submit another PR? |
@fillup I did submit a PR, and it was pulled into master (dbd8aef). They just haven't tagged an official release yet. Looks like they might be pulling more stuff in prior to a 0.6 tagged release. You can grab my change from that specific commit or pull directly from head of master for now. Hope that helps. |
I will close this issue. If your problem still exist with latest versions of Guzzle and Guzzle Service, feel free to reopen it. |
Issue #51 was closed as fixed, but it appears there is a regression that has cropped up around it. It is back to the same behavior seen before; the first node is off on its own instead of encapsulated as item 0 in the array for the tag.
It looks like a bit of code from my original fix got nerfed at some point; the
else if
out of the fix (src/ResponseLocation/XmlLocation.php
methodxmlToArray
) got nerfed:should be
I've tried patching this locally, and it clears up my issue. I'll get a PR going.
The text was updated successfully, but these errors were encountered: