AdminDevis :: getList()的声明应该与AdminTabCore :: getList($ id_lang,$ orderBy = NULL,$ orderWay = NULL,$ st)兼容

时间:2017-08-10 12:35:30

标签: php standards declaration

我阅读了有关此问题的其他答案,但我没有单独找到解决方案。我在AdminDevis.php中没有此代码或其中的一部分。

hive-site.xml

所以我不明白我该怎么说。如果在这个文件中,我必须把它。

谢谢

1 个答案:

答案 0 :(得分:0)

两种方法都应该接受相同的参数,即使扩展类的方法不能获得参数也不知道两种方法的作用但是最接近解决错误应该遵循

这应该是基类

AdminTabCore::getList($id_lang, $orderBy = NULL, $orderWay = NULL, $start = 0, $limit = NULL, $id_lang_shop = false)

在删除警告中,您需要设置使用相同参数扩展AdminTabCore的类方法

AdminDevis::getList($id_lang=null /*this one can be optional */, $orderBy = NULL, $orderWay = NULL, $start = 0, $limit = NULL, $id_lang_shop = false)