Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Depreciated Error in Laravel 5.5 #19

Open
mariedavis-abn opened this issue Nov 21, 2017 · 2 comments
Open

Depreciated Error in Laravel 5.5 #19

mariedavis-abn opened this issue Nov 21, 2017 · 2 comments

Comments

@mariedavis-abn
Copy link

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 ?

@f3l1x
Copy link
Member

f3l1x commented Apr 16, 2018

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

Anyone else could help out?

@alexmpereira
Copy link

alexmpereira commented Feb 19, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

3 participants