{"action":"created","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/10352","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/10352/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/10352/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/10352/events","html_url":"https://github.com/yiisoft/yii2/issues/10352","id":120955835,"number":10352,"title":"Method createPdoInstance() in \\yii\\db\\Connection have to guarantee $this->attributes is array","user":{"login":"neutrinobg","id":12033122,"avatar_url":"https://avatars.githubusercontent.com/u/12033122?v=3","gravatar_id":"","url":"https://api.github.com/users/neutrinobg","html_url":"https://github.com/neutrinobg","followers_url":"https://api.github.com/users/neutrinobg/followers","following_url":"https://api.github.com/users/neutrinobg/following{/other_user}","gists_url":"https://api.github.com/users/neutrinobg/gists{/gist_id}","starred_url":"https://api.github.com/users/neutrinobg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neutrinobg/subscriptions","organizations_url":"https://api.github.com/users/neutrinobg/orgs","repos_url":"https://api.github.com/users/neutrinobg/repos","events_url":"https://api.github.com/users/neutrinobg/events{/privacy}","received_events_url":"https://api.github.com/users/neutrinobg/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-08T08:05:21Z","updated_at":"2015-12-08T09:29:20Z","closed_at":"2015-12-08T08:07:28Z","body":"I think that since the PHP PDO Manual says:\r\npublic __construct ( string $dsn [, string $username [, string $password [, array $options ]]] )\r\nfor the class PDO, the method createPdoInstance() in \\yii\\db\\Connection have to guarantee $this->attributes is array. As it is written now null value could be passed."},"comment":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/comments/162827246","html_url":"https://github.com/yiisoft/yii2/issues/10352#issuecomment-162827246","issue_url":"https://api.github.com/repos/yiisoft/yii2/issues/10352","id":162827246,"user":{"login":"neutrinobg","id":12033122,"avatar_url":"https://avatars.githubusercontent.com/u/12033122?v=3","gravatar_id":"","url":"https://api.github.com/users/neutrinobg","html_url":"https://github.com/neutrinobg","followers_url":"https://api.github.com/users/neutrinobg/followers","following_url":"https://api.github.com/users/neutrinobg/following{/other_user}","gists_url":"https://api.github.com/users/neutrinobg/gists{/gist_id}","starred_url":"https://api.github.com/users/neutrinobg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neutrinobg/subscriptions","organizations_url":"https://api.github.com/users/neutrinobg/orgs","repos_url":"https://api.github.com/users/neutrinobg/repos","events_url":"https://api.github.com/users/neutrinobg/events{/privacy}","received_events_url":"https://api.github.com/users/neutrinobg/received_events","type":"User","site_admin":false},"created_at":"2015-12-08T09:29:20Z","updated_at":"2015-12-08T09:29:20Z","body":"Just for the record with Yii1.1 this issue does not exist, because in class CDbConnection the propery is declared this way:\r\nprivate $_attributes=array();\r\nbut now in class \\yii\\db\\Connection it is:\r\npublic $attributes;"}}