Closed J7mbo closed 8 years ago
We could reset get when setting post and vice-versa. That way the last one set will be the one that's sent. https://github.com/tostercx/twitter-api-php/commit/fcb52410fe6301d50c5f337c9dc259c0df991ae8
Seems to be working.
IMHO Better: reset the fields directly after sending request https://github.com/BugHunter2k/twitter-api-php/commit/9dda72e374fc3c93de363858f26b80e477d0f812
And we still get errors if trying to use both methods for one request
There needs to be an automatic way of resetting the fields so the object can be re-used. A
reset()
method shouldn't have to be called by the end-user.