Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP7 - nusoap - nusoap_client has a deprecated constructor

Tags:

php

laravel

I would like to use nusoap on Laravel 5.3 with PHP7. But when ill try to install it with composer from that package:

https://github.com/codecasts/nusoap-php7 (v.0.9.6)

It still returns me:

ErrorException in class.soapclient.php line 26: Methods with the same name as their class will not be constructors in a future version of PHP; nusoap_client has a deprecated constructor

Ill cleared the cache, but all with no success. Anyone has successfully implemented nusoap in Laravel with PHP7 ?

like image 940
derdida Avatar asked Dec 07 '22 21:12

derdida


1 Answers

I've had the same problem. I've found on GitHub a new version of the nusoap.php file that you will have to copy in your actual NuSoap folder. The deprecated constructor has been rewritten.

Here is the link where you'll be able to get the file: https://github.com/econea/nusoap

like image 155
Sebastien Avatar answered Dec 11 '22 11:12

Sebastien