PHP7-nusoap-nusoap_client已弃用构造函数 [英] PHP7 - nusoap - nusoap_client has a deprecated constructor

查看:485
本文介绍了PHP7-nusoap-nusoap_client已弃用构造函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Laravel 5.3PHP7上使用nusoap.但是生病时,请尝试使用该软件包中的composer进行安装:

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)

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

它仍然返回我:

class p.soapclient.php中的

ErrorException第26行:具有相同方法的方法 名称,因为它们的类在将来的版本中将不再是构造函数 PHP; nusoap_client的构造函数已弃用

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

将清除缓存,但所有操作均未成功.任何人都已成功使用PHP7Laravel中实现了nusoap?

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

推荐答案

我遇到了同样的问题.我在GitHub上找到了新版本的nusoap.php文件,您必须将其复制到实际的NuSoap文件夹中.不推荐使用的构造函数已被重写.

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.

以下是您可以获取文件的链接: https://github.com/econea/nusoap

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

这篇关于PHP7-nusoap-nusoap_client已弃用构造函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆