intuit / QuickBooks-V3-PHP-SDK

Official PHP SDK for QuickBooks REST API v3.0: https://developer.intuit.com/
Apache License 2.0
246 stars 246 forks source link

Using $this when not in object context #333

Closed almasaeed2010 closed 4 years ago

almasaeed2010 commented 4 years ago

The static function listed below is using $this resulting in an error:

Error: Using $this when not in object context at quickbooks/v3-php-sdk/src/Core/Http/Serialization/XmlObjectSerializer.php:50

https://github.com/intuit/QuickBooks-V3-PHP-SDK/blob/70dbb727bc9caa1cb104b0dc8cd9744fda8a8677/src/Core/Http/Serialization/XmlObjectSerializer.php#L37-L56

bsivalingam commented 4 years ago

Thanks for raising this, I have a JIRA to fix the issue, meanwhile feel free to send in a PR.

bsivalingam commented 4 years ago

https://github.com/intuit/QuickBooks-V3-PHP-SDK/pull/340/files will fix the issue.

tehs0ap commented 4 years ago

@bsivalingam I don't see how this resolves the issue. You are now trying to access a non-static property from a static context.