{"action":"created","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/9571","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/9571/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/9571/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/9571/events","html_url":"https://github.com/yiisoft/yii2/issues/9571","id":104428487,"number":9571,"title":"GridView numeric column names issue","user":{"login":"john-d-o-e","id":11157933,"avatar_url":"https://avatars.githubusercontent.com/u/11157933?v=3","gravatar_id":"","url":"https://api.github.com/users/john-d-o-e","html_url":"https://github.com/john-d-o-e","followers_url":"https://api.github.com/users/john-d-o-e/followers","following_url":"https://api.github.com/users/john-d-o-e/following{/other_user}","gists_url":"https://api.github.com/users/john-d-o-e/gists{/gist_id}","starred_url":"https://api.github.com/users/john-d-o-e/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/john-d-o-e/subscriptions","organizations_url":"https://api.github.com/users/john-d-o-e/orgs","repos_url":"https://api.github.com/users/john-d-o-e/repos","events_url":"https://api.github.com/users/john-d-o-e/events{/privacy}","received_events_url":"https://api.github.com/users/john-d-o-e/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/yiisoft/yii2/labels/status:need%20more%20info","name":"status:need more info","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-02T08:40:32Z","updated_at":"2015-09-02T09:43:44Z","closed_at":null,"body":"When you use numeric columns in GridView widget,  php warning occured.\r\nProbably need to change if condition in GridView.php line 525\r\n![bug](https://cloud.githubusercontent.com/assets/11157933/9626582/51538e8c-5167-11e5-90d0-4868a155dbd1.jpg)\r\n "},"comment":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/comments/137002456","html_url":"https://github.com/yiisoft/yii2/issues/9571#issuecomment-137002456","issue_url":"https://api.github.com/repos/yiisoft/yii2/issues/9571","id":137002456,"user":{"login":"Alex-Code","id":1797626,"avatar_url":"https://avatars.githubusercontent.com/u/1797626?v=3","gravatar_id":"","url":"https://api.github.com/users/Alex-Code","html_url":"https://github.com/Alex-Code","followers_url":"https://api.github.com/users/Alex-Code/followers","following_url":"https://api.github.com/users/Alex-Code/following{/other_user}","gists_url":"https://api.github.com/users/Alex-Code/gists{/gist_id}","starred_url":"https://api.github.com/users/Alex-Code/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alex-Code/subscriptions","organizations_url":"https://api.github.com/users/Alex-Code/orgs","repos_url":"https://api.github.com/users/Alex-Code/repos","events_url":"https://api.github.com/users/Alex-Code/events{/privacy}","received_events_url":"https://api.github.com/users/Alex-Code/received_events","type":"User","site_admin":false},"created_at":"2015-09-02T09:43:44Z","updated_at":"2015-09-02T09:43:44Z","body":"You need to specify column names, Yii won't know what to show when it sees an ambiguous number.\r\n\r\n```php\r\n$columnsForDataProvider = [\r\n  ['class' => 'yii\\grid\\SerialColumn'],\r\n  'col1',\r\n  'col2',\r\n  'col3',\r\n];\r\n<?= GridView::widget([\r\n    'dataProvider' => $dataProvider,\r\n    'columns' => $columnsForDataProvider,\r\n]);\r\n?>\r\n```"}}