reset()期望参数1是数组,更新Yii版本后在Gii中给出整数

iibxawm4  于 2022-11-09  发布在  其他
关注(0)|答案(1)|浏览(138)

更新Yii到1.1.20后,我得到错误reset() expects parameter 1 to be array, integer given时,点击Modelgenerator中的diff选项。
我在www.example.com和www.example.com中找到该函数https://github.com/yiisoft/yii/blob/master/framework/gii/components/Pear/Text/Diff/Engine/native.php#L194https://github.com/yiisoft/yii/blob/master/framework/gii/components/Pear/Text/Diff/Engine/native.php#L206
所以我找不到解决办法。

1l5u6lss

1l5u6lss1#

您可以通过更改框架文件来解决此问题(不推荐)

framework/gii/components/Pear/Text/Diff/Engine/native.php

在第194行和第206行检查$match是否是数组,并跳过依赖于它的代码部分。

相关问题