driesvints / vat-calculator

Handle all the hard stuff related to EU MOSS tax/vat regulations, the way it should be.
MIT License
1.2k stars 88 forks source link

Use arr helper as fix for array->has() error #123

Closed chrismeijer closed 3 years ago

chrismeijer commented 3 years ago

An error occured on VatCalculator.php:

Call to a member function has() on array

Using the Illuminate\Support\Arr helper solved this issue, ie:

Arr::has($this->config, $businessCountryKey)

driesvints commented 3 years ago

With which specific country are you having issues? Can you share some more code?

chrismeijer commented 3 years ago

Sorry.... never mind. I corrected the usage of the config file and it's working now as I need.

Thanks for your quick answers.