{"action":"created","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/12855","repository_url":"https://api.github.com/repos/yiisoft/yii2","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/12855/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/12855/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/12855/events","html_url":"https://github.com/yiisoft/yii2/pull/12855","id":185542566,"number":12855,"title":"Added typecast functionality to BooleanValidator","user":{"login":"zalatov","id":7518216,"avatar_url":"https://avatars.githubusercontent.com/u/7518216?v=3","gravatar_id":"","url":"https://api.github.com/users/zalatov","html_url":"https://github.com/zalatov","followers_url":"https://api.github.com/users/zalatov/followers","following_url":"https://api.github.com/users/zalatov/following{/other_user}","gists_url":"https://api.github.com/users/zalatov/gists{/gist_id}","starred_url":"https://api.github.com/users/zalatov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zalatov/subscriptions","organizations_url":"https://api.github.com/users/zalatov/orgs","repos_url":"https://api.github.com/users/zalatov/repos","events_url":"https://api.github.com/users/zalatov/events{/privacy}","received_events_url":"https://api.github.com/users/zalatov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-27T00:10:57Z","updated_at":"2016-10-27T07:23:22Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/yiisoft/yii2/pulls/12855","html_url":"https://github.com/yiisoft/yii2/pull/12855","diff_url":"https://github.com/yiisoft/yii2/pull/12855.diff","patch_url":"https://github.com/yiisoft/yii2/pull/12855.patch"},"body":"| Q             | A\r\n| ------------- | ---\r\n| Is bugfix?    | no\r\n| New feature?  | yes\r\n| Breaks BC?    | no\r\n| Tests pass?   | yes\r\n| Fixed issues  | \r\n\r\nThis functionality needs when code requires strict compare."},"comment":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/comments/256566510","html_url":"https://github.com/yiisoft/yii2/pull/12855#issuecomment-256566510","issue_url":"https://api.github.com/repos/yiisoft/yii2/issues/12855","id":256566510,"user":{"login":"cebe","id":189796,"avatar_url":"https://avatars.githubusercontent.com/u/189796?v=3","gravatar_id":"","url":"https://api.github.com/users/cebe","html_url":"https://github.com/cebe","followers_url":"https://api.github.com/users/cebe/followers","following_url":"https://api.github.com/users/cebe/following{/other_user}","gists_url":"https://api.github.com/users/cebe/gists{/gist_id}","starred_url":"https://api.github.com/users/cebe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cebe/subscriptions","organizations_url":"https://api.github.com/users/cebe/orgs","repos_url":"https://api.github.com/users/cebe/repos","events_url":"https://api.github.com/users/cebe/events{/privacy}","received_events_url":"https://api.github.com/users/cebe/received_events","type":"User","site_admin":false},"created_at":"2016-10-27T07:23:22Z","updated_at":"2016-10-27T07:23:22Z","body":"you can already do this with two validators:\r\n\r\n```\r\n['attribute', 'bool'],\r\n['attribute', 'filter', 'filter' => 'boolval'],\r\n```\r\n\r\nor\r\n\r\n```\r\n['attribute', 'bool'],\r\n['attribute', 'filter', 'filter' => 'intval'],\r\n```"}}
{"actor":{"display_login":"cebe"}}