0

我在我的网站上使用payumbundle但在我的产品服务器中(在开发服务器中一切正常)我收到此错误:

FatalErrorException:编译错误:无法在 /path/to/folder/vendor/payum/payum/src/Payum/ 中继承抽象函数 Payum\Request\StatusRequestInterface::getModel()(之前在 Payum\Request\ModelRequestInterface 中声明的抽象)请求/BinaryMaskStatusRequest.php 第 5 行

这是第 5 行 vendor/payum/payum/src/Payum/Request/BinaryMaskStatusRequest.php 的代码

class BinaryMaskStatusRequest extends BaseModelInteractiveRequest implements StatusRequestInterface {

在我的开发服务器中,我有 PHP 5.3.10,而在产品服务器中,我有 PHP 5.3.3。

4

1 回答 1

1

实际上我评论了 Payum\Request\StatusRequestInterface::getModel() 函数,但我很确定这不是修复它的正确方法

不错的收获!我将在 StatusRequestInterface 接口上删除这些方法(getModel 和 setModel)。它们来自以前的版本,不应再存在。坏事是我只能从 0.6 版开始删除它们,因为它引入了 BC 中断。

于 2013-08-02T19:40:18.253 回答