phpro / soap-client

A general purpose SOAP client for PHP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Call to undefined method Phpro\SoapClient\CodeGenerator\Config\Config::__set_state()

arifinreinaldo opened this issue · comments

Q A
Version 3.1.1

Support Question

image

I tried to do php artisan optimize but im stuck with this issue, already tried to do composer dump-autoload, cache clear, upgrade composer but still the same error. Already make sure the function is able to check also. But unfortunately still get this error, is there any advice? Thank you

I don't know much about Laravel, but there is no __set_state method on that class. So maybe your Laravel specific configuration is invalid?
That config class should be used to generate code, so not sure it should even be part of the Laravel configuration directly.

The exception you pasted is about having a closure somewhere in your configuration which is not allowed because it can't be serialized.

Hi Veewee, thank you for your clue.

For the config in Laravel it shouldn't be put at the config/soap-client.php, you should place it on different location like dedicated Soap Folder. That way it wont affect the optimize process.

Thanks for the reply @veewee