更新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
所以我找不到解决办法。
1条答案
按热度按时间1l5u6lss1#
您可以通过更改框架文件来解决此问题(不推荐)
在第194行和第206行检查$match是否是数组,并跳过依赖于它的代码部分。