nusoap icon indicating copy to clipboard operation
nusoap copied to clipboard

Depreciated Error in Laravel 5.5

Open mariedavis-abn opened this issue 8 years ago • 2 comments

I am getting this message when I call the class 'soapclient'. Methods with the same name as their class will not be constructors in a future version of PHP; nusoap_client has a deprecated constructor I am using Laravel 5.5 with PHP 7.0. What do I need to do to fix this ?

mariedavis-abn avatar Nov 21 '17 17:11 mariedavis-abn

Hi @mariedavis-abn, well I'm not sure. :(

Anyone else could help out?

f3l1x avatar Apr 16 '18 05:04 f3l1x

Hello @mariedavis-abn , In PHP version 7.0 you can no longer create constructors with the class name. To create a constructor, use __construct.

Check the nusoap_client class, there is a method called nusoap_client that in the old versions of PHP would be our constructor. Replace the soapclient method name for __construc equal to the PHP documentation: http://php.net/manual/pt_BR/language.oop5.decon.php

If it does not solve, it would be interesting to publish the codes for better analysis. Thank you

alexmpereira avatar Feb 19 '19 20:02 alexmpereira