{"action":"created","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/6953","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/6953/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/6953/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/6953/events","html_url":"https://github.com/yiisoft/yii2/pull/6953","id":54985077,"number":6953,"title":"Update BaseYii.php","user":{"login":"githubjeka","id":874234,"avatar_url":"https://avatars.githubusercontent.com/u/874234?v=3","gravatar_id":"","url":"https://api.github.com/users/githubjeka","html_url":"https://github.com/githubjeka","followers_url":"https://api.github.com/users/githubjeka/followers","following_url":"https://api.github.com/users/githubjeka/following{/other_user}","gists_url":"https://api.github.com/users/githubjeka/gists{/gist_id}","starred_url":"https://api.github.com/users/githubjeka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/githubjeka/subscriptions","organizations_url":"https://api.github.com/users/githubjeka/orgs","repos_url":"https://api.github.com/users/githubjeka/repos","events_url":"https://api.github.com/users/githubjeka/events{/privacy}","received_events_url":"https://api.github.com/users/githubjeka/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-01-21T07:05:07Z","updated_at":"2015-01-22T13:17:29Z","closed_at":"2015-01-21T16:35:22Z","pull_request":{"url":"https://api.github.com/repos/yiisoft/yii2/pulls/6953","html_url":"https://github.com/yiisoft/yii2/pull/6953","diff_url":"https://github.com/yiisoft/yii2/pull/6953.diff","patch_url":"https://github.com/yiisoft/yii2/pull/6953.patch"},"body":"$properties must be an array."},"comment":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/comments/71018520","html_url":"https://github.com/yiisoft/yii2/pull/6953#issuecomment-71018520","issue_url":"https://api.github.com/repos/yiisoft/yii2/issues/6953","id":71018520,"user":{"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},"created_at":"2015-01-22T13:17:29Z","updated_at":"2015-01-22T13:17:29Z","body":"`$object2` could also be a configuration object. \r\n\r\nI agree the chance is slim. Type hint is mainly used by PHP parser to help you verify the parameter type. We aren't use type hint extensively in the core code. There are some reasons for this practice:\r\n\r\n* It's not clear if adding type hint may degrade runtime performance.\r\n* When a parameter with incorrect type is used, in most cases a PHP error/warning may occur within the function, which serves the same purpose of parameter type verification.\r\n* For type hint like `array`, it prevents the usages like discussed in this thread.\r\n* For class type hints, you are not allowed to change the signature to use subclass type hints.\r\n\r\nOverall, I prefer we only use type hints when we are very sure we expect certain type of parameters."}}