{"action":"opened","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/14366","repository_url":"https://api.github.com/repos/yiisoft/yii2","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/14366/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/14366/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/14366/events","html_url":"https://github.com/yiisoft/yii2/issues/14366","id":239404119,"number":14366,"title":"PHP 7.2 get_class not accepting null","user":{"login":"dynasource","id":125726,"avatar_url":"https://avatars1.githubusercontent.com/u/125726?v=3","gravatar_id":"","url":"https://api.github.com/users/dynasource","html_url":"https://github.com/dynasource","followers_url":"https://api.github.com/users/dynasource/followers","following_url":"https://api.github.com/users/dynasource/following{/other_user}","gists_url":"https://api.github.com/users/dynasource/gists{/gist_id}","starred_url":"https://api.github.com/users/dynasource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dynasource/subscriptions","organizations_url":"https://api.github.com/users/dynasource/orgs","repos_url":"https://api.github.com/users/dynasource/repos","events_url":"https://api.github.com/users/dynasource/events{/privacy}","received_events_url":"https://api.github.com/users/dynasource/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-06-29T08:35:55Z","updated_at":"2017-06-29T08:35:55Z","closed_at":null,"body":"### What steps will reproduce the problem?\r\n- Use PHP 7.2\r\n- Use closure in Application::$bootstrap \r\n\r\n### What is the expected result?\r\nNo errors \r\n\r\n### What do you get instead?\r\nyii\\base\\ErrorException get_class() expects parameter 1 to be object, null given\r\n\r\n### Additional info\r\nAs of 7.2, http://php.net/manual/en/function.get-class.php:\r\n\r\n![error-object-php72](https://user-images.githubusercontent.com/125726/27678764-b8d74196-5cb6-11e7-832d-e81704e4c78a.png)\r\n\r\nExplicitly passing NULL as the object is no longer allowed as of PHP 7.2.0. The parameter is still optional and calling get_class() without a parameter from inside a class will work, but passing NULL now emits an E_WARNING notice.\r\n\r\n| Q                | A\r\n| ---------------- | ---\r\n| Yii version      | All\r\n| PHP version      |  7.2|\r\n"}}
{"actor":{"display_login":"dynasource"}}