laravel PHP7 - nusoap - nusoap_client 有一个不推荐使用的构造函数

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/39616448/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 14:29:30  来源:igfitidea点击:

PHP7 - nusoap - nusoap_client has a deprecated constructor

phplaravel

提问by derdida

I would like to use nusoapon Laravel 5.3with PHP7. But when ill try to install it with composerfrom that package:

我想用nusoapLaravel 5.3PHP7。但是当我尝试composer从那个包安装它时:

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

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

class.soapclient.php 第 26 行中的 ErrorException:与它们的类同名的方法在 PHP 的未来版本中将不再是构造函数;nusoap_client 有一个不推荐使用的构造函数

Ill cleared the cache, but all with no success. Anyone has successfully implemented nusoapin Laravelwith PHP7?

生病清除缓存,但都没有成功。任何人都成功地实施nusoapLaravelPHP7

回答by Sebastien

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.

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

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

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