{"action":"created","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/12349","repository_url":"https://api.github.com/repos/yiisoft/yii2","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/12349/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/12349/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/12349/events","html_url":"https://github.com/yiisoft/yii2/issues/12349","id":173493162,"number":12349,"title":"Autocomplection not work in PHPStorm for BaseActiveRecord::findOne()","user":{"login":"paulzi","id":9402208,"avatar_url":"https://avatars.githubusercontent.com/u/9402208?v=3","gravatar_id":"","url":"https://api.github.com/users/paulzi","html_url":"https://github.com/paulzi","followers_url":"https://api.github.com/users/paulzi/followers","following_url":"https://api.github.com/users/paulzi/following{/other_user}","gists_url":"https://api.github.com/users/paulzi/gists{/gist_id}","starred_url":"https://api.github.com/users/paulzi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulzi/subscriptions","organizations_url":"https://api.github.com/users/paulzi/orgs","repos_url":"https://api.github.com/users/paulzi/repos","events_url":"https://api.github.com/users/paulzi/events{/privacy}","received_events_url":"https://api.github.com/users/paulzi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-26T16:32:29Z","updated_at":"2016-08-26T16:33:18Z","closed_at":null,"body":"### What steps will reproduce the problem?\r\n```php\r\n$model = Example::findOne(1);\r\n$model->attribute_in_db = 1; // attribute_in_db is marked as not found\r\n```\r\n\r\n### Possible solution\r\nIf I replace `@return static|null` to `@return static` in BaseActiveRecord::findOne() autocomplection works normally.\r\n\r\n\r\n### Additional info\r\n\r\n| Q                | A\r\n| ---------------- | ---\r\n| Yii version      | 2.0.*\r\n| PHP version      | *\r\n| PHPStorm | 10\r\n"},"comment":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/comments/242784704","html_url":"https://github.com/yiisoft/yii2/issues/12349#issuecomment-242784704","issue_url":"https://api.github.com/repos/yiisoft/yii2/issues/12349","id":242784704,"user":{"login":"paulzi","id":9402208,"avatar_url":"https://avatars.githubusercontent.com/u/9402208?v=3","gravatar_id":"","url":"https://api.github.com/users/paulzi","html_url":"https://github.com/paulzi","followers_url":"https://api.github.com/users/paulzi/followers","following_url":"https://api.github.com/users/paulzi/following{/other_user}","gists_url":"https://api.github.com/users/paulzi/gists{/gist_id}","starred_url":"https://api.github.com/users/paulzi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulzi/subscriptions","organizations_url":"https://api.github.com/users/paulzi/orgs","repos_url":"https://api.github.com/users/paulzi/repos","events_url":"https://api.github.com/users/paulzi/events{/privacy}","received_events_url":"https://api.github.com/users/paulzi/received_events","type":"User","site_admin":false},"created_at":"2016-08-26T16:33:18Z","updated_at":"2016-08-26T16:33:18Z","body":"See [https://github.com/yiisoft/yii2-gii/pull/184]"}}
{"actor":{"display_login":"paulzi"}}