f00b4r / nusoap

:smirk: Fixed NuSOAP for PHP 5.6 - 8.2
https://f00b4r.github.io/nusoap/
320 stars 356 forks source link

Creating default object from empty value #73

Closed zerobyt closed 3 years ago

zerobyt commented 3 years ago

After update to Latest version 0.9.10 into my Laravel 7 webservice my client has the next issue:

ErrorException Creating default object from empty value

\vendor\econea\nusoap\src\nusoap.php:4842

The line 4842 is: $this->schemas[$ns][$ns2]->imports[$ns2][$ii]['loaded'] = true;

Any suggest?

zerobyt commented 3 years ago

I fixed this bug with de next solution into line 4842:

(isset($this->schemas[$ns][$ns2]->imports[$ns2][$ii]['loaded'])) ? true : false;