我在我的网站上使用payumbundle,但在我的产品服务器中(在开发服务器中一切正常),我收到了以下错误:
FatalErrorException:编译错误:无法继承/path/to/folder/vendor/Payum/Payum/src/Payum/Request/BinaryMaskStatusRequest.php第5行中的抽象函数Payum''Request''StatusRequestInterface::getModel()(之前在Payum''Request ''ModelRequestInterface中声明的抽象函数)
这是vendor/payum/payum/src/payum/Request/BinaryMaskStatusRequest.php中第5行的代码
class BinaryMaskStatusRequest extends BaseModelInteractiveRequest implements StatusRequestInterface {
在我的开发服务器中,我有PHP 5.3.10,而在prod服务器中我有PHP 5.3.3。
事实上,我评论了Payum''Request''StatusRequestInterface::getModel()函数,但我很确定这不是修复的正确方法
漂亮的接球!我将删除StatusRequestInterface接口上的这些方法(getModel和setModel)。它们来自以前的版本,不应该再存在了。糟糕的是,我只能从0.6版本开始删除它们,因为它引入了BC中断。