Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Pass options by reference so the changes persist #163

Merged
merged 1 commit into from
Nov 24, 2017

Conversation

robdrimmie
Copy link
Contributor

This is a tiny change that resolves a problem I encountered today. Please let me know if I'm completely misguided. I don't have a quick example scenario setup but I can if that would be helpful.

By passing $options by value, the options weren't being set elsewhere in the application, so for example POSTing to create a new instance of a sObject would fail because the request would be sent as a GET request. Passing the options array by reference (which appears to be the case in earlier versions of this function) resolved my difficulties immediately.

@omniphx
Copy link
Owner

omniphx commented Nov 24, 2017

Hey @robdrimmie, thanks for the catch. TBH that function setArgument() seems like some unnecessary refactoring. Not sure why it's still around. Feel free to rip it out if you want!

@omniphx omniphx merged commit 94cc895 into omniphx:master Nov 24, 2017
@CodeDestroyer
Copy link

@omniphx can you build a release for this?

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants