Php 严格标准:响应声明::toXML()错误
我有一个PHP脚本中显示的以下错误Php 严格标准:响应声明::toXML()错误,php,plivo,Php,Plivo,我有一个PHP脚本中显示的以下错误 Strict Standards: Declaration of Response::toXML() should be compatible with Element::toXML($header = false) in line 35 所讨论的行是require_once('./plivo.php');plivo.com PHP助手的导入 有谁能告诉我这个错误是什么,我可以如何修复它 谢谢我在使用错误报告(E\u ALL)这也给我带来了同样的问题。我删
Strict Standards: Declaration of Response::toXML() should
be compatible with Element::toXML($header = false) in line 35
所讨论的行是require_once('./plivo.php')代码>;plivo.com PHP助手的导入
有谁能告诉我这个错误是什么,我可以如何修复它
谢谢我在使用错误报告(E\u ALL)
这也给我带来了同样的问题。我删除了它,现在我正在使用error\u报告(E\u error)代码>由于E\u STRICT
而发生错误。有关错误报告的更多信息,请访问:您可能已经了解到这一点,但如果您确实想修复错误而不是更改错误报告级别,则需要更改以下内容:
// In the plivo.php helper file we're looking at
// the Response class that extends the Element class
// Change the following function from:
public function toXML() {
$xml = parent::toXML($header=TRUE);
return $xml;
}
// To:
public function toXML($header=TRUE) {
$xml = parent::toXML($header);
return $xml;
}
问题在于childClass::method()与parentClass::method()具有不同的参数,如中所述。希望这会有帮助