{"action":"opened","issue":{"url":"https://api.github.com/repos/yiisoft/yii/issues/4226","repository_url":"https://api.github.com/repos/yiisoft/yii","labels_url":"https://api.github.com/repos/yiisoft/yii/issues/4226/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii/issues/4226/comments","events_url":"https://api.github.com/repos/yiisoft/yii/issues/4226/events","html_url":"https://github.com/yiisoft/yii/issues/4226","id":360812455,"node_id":"MDU6SXNzdWUzNjA4MTI0NTU=","number":4226,"title":"reset() expects parameter 1 to be array, integer given in GII diff","user":{"login":"ahmadasjad","id":7436311,"node_id":"MDQ6VXNlcjc0MzYzMTE=","avatar_url":"https://avatars0.githubusercontent.com/u/7436311?v=4","gravatar_id":"","url":"https://api.github.com/users/ahmadasjad","html_url":"https://github.com/ahmadasjad","followers_url":"https://api.github.com/users/ahmadasjad/followers","following_url":"https://api.github.com/users/ahmadasjad/following{/other_user}","gists_url":"https://api.github.com/users/ahmadasjad/gists{/gist_id}","starred_url":"https://api.github.com/users/ahmadasjad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahmadasjad/subscriptions","organizations_url":"https://api.github.com/users/ahmadasjad/orgs","repos_url":"https://api.github.com/users/ahmadasjad/repos","events_url":"https://api.github.com/users/ahmadasjad/events{/privacy}","received_events_url":"https://api.github.com/users/ahmadasjad/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-17T10:46:55Z","updated_at":"2018-09-17T10:46:55Z","closed_at":null,"author_association":"NONE","body":"Note that only PHP 7 compatibility issues are accepted. For security issues contact maintainers privately.\r\n\r\n### What steps will reproduce the problem?\r\n\r\n[model_and_controller_to_check_yii1.1.20_gii_error.zip](https://github.com/yiisoft/yii/files/2388211/model_controller_to_check_yii1.1.20_gii_error.zip)\r\nThere are two files one is a controller and another is a model. Once you'll try to regenerate the crud from the Model, click **preview** button then click on **diff** text of the controller going to be generated. Now you'll see the error `reset() expects parameter 1 to be array, integer given`\r\n\r\n### What is the expected result?\r\nDifference between old and new code when going to generate crud from Active Record model using GII\r\n\r\n### What do you get instead?\r\nreset() expects parameter 1 to be array, integer given\r\n\r\n\r\n### Additional info\r\n\r\n| Q                | A\r\n| ---------------- | ---\r\n| Yii version      | 1.1.20.6ed384\r\n| PHP version      | 7.1.20-1\r\n| Operating system | ubuntu16.04.1\r\n"}}
{"actor":{"display_login":"ahmadasjad"}}