{"action":"created","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/8693","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/8693/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/8693/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/8693/events","html_url":"https://github.com/yiisoft/yii2/pull/8693","id":86017153,"number":8693,"title":"Use PHP 5.5 ::class property to replace Object::className()","user":{"login":"su-xiaolin","id":4076198,"avatar_url":"https://avatars.githubusercontent.com/u/4076198?v=3","gravatar_id":"","url":"https://api.github.com/users/su-xiaolin","html_url":"https://github.com/su-xiaolin","followers_url":"https://api.github.com/users/su-xiaolin/followers","following_url":"https://api.github.com/users/su-xiaolin/following{/other_user}","gists_url":"https://api.github.com/users/su-xiaolin/gists{/gist_id}","starred_url":"https://api.github.com/users/su-xiaolin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/su-xiaolin/subscriptions","organizations_url":"https://api.github.com/users/su-xiaolin/orgs","repos_url":"https://api.github.com/users/su-xiaolin/repos","events_url":"https://api.github.com/users/su-xiaolin/events{/privacy}","received_events_url":"https://api.github.com/users/su-xiaolin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"samdark","id":47294,"avatar_url":"https://avatars.githubusercontent.com/u/47294?v=3","gravatar_id":"","url":"https://api.github.com/users/samdark","html_url":"https://github.com/samdark","followers_url":"https://api.github.com/users/samdark/followers","following_url":"https://api.github.com/users/samdark/following{/other_user}","gists_url":"https://api.github.com/users/samdark/gists{/gist_id}","starred_url":"https://api.github.com/users/samdark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samdark/subscriptions","organizations_url":"https://api.github.com/users/samdark/orgs","repos_url":"https://api.github.com/users/samdark/repos","events_url":"https://api.github.com/users/samdark/events{/privacy}","received_events_url":"https://api.github.com/users/samdark/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/yiisoft/yii2/milestones/6","html_url":"https://github.com/yiisoft/yii2/milestones/2.1.x","labels_url":"https://api.github.com/repos/yiisoft/yii2/milestones/6/labels","id":458001,"number":6,"title":"2.1.x","description":"","creator":{"login":"qiangxue","id":993322,"avatar_url":"https://avatars.githubusercontent.com/u/993322?v=3","gravatar_id":"","url":"https://api.github.com/users/qiangxue","html_url":"https://github.com/qiangxue","followers_url":"https://api.github.com/users/qiangxue/followers","following_url":"https://api.github.com/users/qiangxue/following{/other_user}","gists_url":"https://api.github.com/users/qiangxue/gists{/gist_id}","starred_url":"https://api.github.com/users/qiangxue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qiangxue/subscriptions","organizations_url":"https://api.github.com/users/qiangxue/orgs","repos_url":"https://api.github.com/users/qiangxue/repos","events_url":"https://api.github.com/users/qiangxue/events{/privacy}","received_events_url":"https://api.github.com/users/qiangxue/received_events","type":"User","site_admin":false},"open_issues":124,"closed_issues":0,"state":"open","created_at":"2013-10-17T21:06:09Z","updated_at":"2015-11-25T23:04:35Z","due_on":null,"closed_at":null},"comments":7,"created_at":"2015-06-08T04:16:24Z","updated_at":"2015-12-03T20:06:09Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/yiisoft/yii2/pulls/8693","html_url":"https://github.com/yiisoft/yii2/pull/8693","diff_url":"https://github.com/yiisoft/yii2/pull/8693.diff","patch_url":"https://github.com/yiisoft/yii2/pull/8693.patch"},"body":"rt\r\nhttp://php.net/manual/tr/migration55.new-features.php#migration55.new-features.class-name"},"comment":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/comments/161767916","html_url":"https://github.com/yiisoft/yii2/pull/8693#issuecomment-161767916","issue_url":"https://api.github.com/repos/yiisoft/yii2/issues/8693","id":161767916,"user":{"login":"Faryshta","id":2029247,"avatar_url":"https://avatars.githubusercontent.com/u/2029247?v=3","gravatar_id":"","url":"https://api.github.com/users/Faryshta","html_url":"https://github.com/Faryshta","followers_url":"https://api.github.com/users/Faryshta/followers","following_url":"https://api.github.com/users/Faryshta/following{/other_user}","gists_url":"https://api.github.com/users/Faryshta/gists{/gist_id}","starred_url":"https://api.github.com/users/Faryshta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Faryshta/subscriptions","organizations_url":"https://api.github.com/users/Faryshta/orgs","repos_url":"https://api.github.com/users/Faryshta/repos","events_url":"https://api.github.com/users/Faryshta/events{/privacy}","received_events_url":"https://api.github.com/users/Faryshta/received_events","type":"User","site_admin":false},"created_at":"2015-12-03T20:06:08Z","updated_at":"2015-12-03T20:06:08Z","body":"@Vovan-VE the same happens if we use the current solution `static::className()` doesn't work outside the class. Actually `static` doesn't work outside the class at all.\r\n\r\nyou can test it on views for example.\r\n\r\n```php\r\n/**\r\n * @this yii\\web\\View\r\n */\r\n$this->registerJs('alert(\"hello\");', static::POS_END);\r\n```"}}