avadev / AvaTax-Calc-REST-PHP

PHP sample for the AvaTax Calc REST API
Apache License 2.0
9 stars 28 forks source link

TaxServiceRest::getTax produces PHP notice when using "summary mode". #16

Closed maorcatmyheritage closed 9 years ago

maorcatmyheritage commented 9 years ago

The reason is that the response doesn't contain TaxDetails but the code in /Volumes/mhdev/working-copies/web/trunk/vendor/avalara/avatax/src/AvaTax/GetTaxResult.php:98 calls \AvaTax\TaxDetail::parseTaxDetails which loops through $object->TaxDetails without checking for existence.

anyarms commented 9 years ago

Fixed!