使用Macaw发生Unsupported operand types错误

BUG问题:

 *  Fatal error: Uncaught Error: Unsupported operand types in D:\phpstudy_pro\WWW\qx.com\app\controllers\admin\transaction.php:49
 *  Stack trace: #0 D:\phpstudy_pro\WWW\qx.com\vendor\noahbuscher\macaw\Macaw.php(97): admin\Transaction->add()
 *                   #1 D:\phpstudy_pro\WWW\qx.com\index.php(64): NoahBuscher\Macaw\Macaw::dispatch()
 *                   #2 {main} thrown in D:\phpstudy_pro\WWW\qx.com\app\controllers\admin\transaction.php on line 49

解决方案:
修改错误代码=>数组无法直接进行四则运算,需要遍历后才能

上一篇:成功解决TypeError: unsupported operand type(s) for %: 'NoneType' and 'dict'


下一篇:执行python程序报错如下:ValueError: unsupported format character '\' (0x5c) at index 29 解决方案