{"action":"created","comment":{"url":"https://api.github.com/repos/cakephp/cakephp/pulls/comments/79100191","id":79100191,"diff_hunk":"@@ -521,9 +521,11 @@ public static function localizedTime($check, $type = 'datetime', $format = null)\n \n     /**\n      * Boolean validation, determines if value passed is a boolean integer or true/false.\n+     * To check if a value is set specifically to false or True see `inList()`.","path":"src/Validation/Validation.php","position":null,"original_position":4,"commit_id":"5bb65d78296e5fb0d94c77f99eb057ee1fd0c5b8","original_commit_id":"fb4314214e1dfbf23b7d3ef85626565e3e75c04c","user":{"login":"inoas","id":20972207,"avatar_url":"https://avatars.githubusercontent.com/u/20972207?v=3","gravatar_id":"","url":"https://api.github.com/users/inoas","html_url":"https://github.com/inoas","followers_url":"https://api.github.com/users/inoas/followers","following_url":"https://api.github.com/users/inoas/following{/other_user}","gists_url":"https://api.github.com/users/inoas/gists{/gist_id}","starred_url":"https://api.github.com/users/inoas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inoas/subscriptions","organizations_url":"https://api.github.com/users/inoas/orgs","repos_url":"https://api.github.com/users/inoas/repos","events_url":"https://api.github.com/users/inoas/events{/privacy}","received_events_url":"https://api.github.com/users/inoas/received_events","type":"User","site_admin":false},"body":"Makes me wonder if inList fits:\r\n```bash\r\n$ php -a\r\nphp > $vals = [0, 1, '0', '1', true, false];\r\nphp > foreach($vals as $val) { echo strval($val); }\r\n01011\r\n```\r\n... but should be `010110`, e.g. `strval(false)` doesn't return `0` but rather `''`.\r\n\r\n\r\nMaybe rather add true/false as a param to boolean() to enforce it to be falsey/truthy? (0, '0', false, 1, '1', true)?","created_at":"2016-09-16T02:57:33Z","updated_at":"2016-09-16T02:57:33Z","html_url":"https://github.com/cakephp/cakephp/pull/9461#discussion_r79100191","pull_request_url":"https://api.github.com/repos/cakephp/cakephp/pulls/9461","_links":{"self":{"href":"https://api.github.com/repos/cakephp/cakephp/pulls/comments/79100191"},"html":{"href":"https://github.com/cakephp/cakephp/pull/9461#discussion_r79100191"},"pull_request":{"href":"https://api.github.com/repos/cakephp/cakephp/pulls/9461"}}},"pull_request":{"url":"https://api.github.com/repos/cakephp/cakephp/pulls/9461","id":85378302,"html_url":"https://github.com/cakephp/cakephp/pull/9461","diff_url":"https://github.com/cakephp/cakephp/pull/9461.diff","patch_url":"https://github.com/cakephp/cakephp/pull/9461.patch","issue_url":"https://api.github.com/repos/cakephp/cakephp/issues/9461","number":9461,"state":"open","locked":false,"title":"3.x docblock: Validation boolean => mimic isTrue/isFalse","user":{"login":"inoas","id":20972207,"avatar_url":"https://avatars.githubusercontent.com/u/20972207?v=3","gravatar_id":"","url":"https://api.github.com/users/inoas","html_url":"https://github.com/inoas","followers_url":"https://api.github.com/users/inoas/followers","following_url":"https://api.github.com/users/inoas/following{/other_user}","gists_url":"https://api.github.com/users/inoas/gists{/gist_id}","starred_url":"https://api.github.com/users/inoas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inoas/subscriptions","organizations_url":"https://api.github.com/users/inoas/orgs","repos_url":"https://api.github.com/users/inoas/repos","events_url":"https://api.github.com/users/inoas/events{/privacy}","received_events_url":"https://api.github.com/users/inoas/received_events","type":"User","site_admin":false},"body":"Updated boolean docblock Ref: https://github.com/cakephp/docs/issues/4147","created_at":"2016-09-15T10:19:29Z","updated_at":"2016-09-16T02:57:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bc28ebe0dceb56e815564f5ac6ed8a094db59149","assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/cakephp/cakephp/milestones/100","html_url":"https://github.com/cakephp/cakephp/milestones/3.3.4","labels_url":"https://api.github.com/repos/cakephp/cakephp/milestones/100/labels","id":1981216,"number":100,"title":"3.3.4","description":"Bugfixes and minor features for 3.3.x","creator":{"login":"markstory","id":24086,"avatar_url":"https://avatars.githubusercontent.com/u/24086?v=3","gravatar_id":"","url":"https://api.github.com/users/markstory","html_url":"https://github.com/markstory","followers_url":"https://api.github.com/users/markstory/followers","following_url":"https://api.github.com/users/markstory/following{/other_user}","gists_url":"https://api.github.com/users/markstory/gists{/gist_id}","starred_url":"https://api.github.com/users/markstory/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markstory/subscriptions","organizations_url":"https://api.github.com/users/markstory/orgs","repos_url":"https://api.github.com/users/markstory/repos","events_url":"https://api.github.com/users/markstory/events{/privacy}","received_events_url":"https://api.github.com/users/markstory/received_events","type":"User","site_admin":false},"open_issues":41,"closed_issues":31,"state":"open","created_at":"2016-09-03T02:27:21Z","updated_at":"2016-09-16T01:39:25Z","due_on":"2016-09-23T00:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/cakephp/cakephp/pulls/9461/commits","review_comments_url":"https://api.github.com/repos/cakephp/cakephp/pulls/9461/comments","review_comment_url":"https://api.github.com/repos/cakephp/cakephp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cakephp/cakephp/issues/9461/comments","statuses_url":"https://api.github.com/repos/cakephp/cakephp/statuses/5bb65d78296e5fb0d94c77f99eb057ee1fd0c5b8","head":{"label":"inoas:patch-1","ref":"patch-1","sha":"5bb65d78296e5fb0d94c77f99eb057ee1fd0c5b8","user":{"login":"inoas","id":20972207,"avatar_url":"https://avatars.githubusercontent.com/u/20972207?v=3","gravatar_id":"","url":"https://api.github.com/users/inoas","html_url":"https://github.com/inoas","followers_url":"https://api.github.com/users/inoas/followers","following_url":"https://api.github.com/users/inoas/following{/other_user}","gists_url":"https://api.github.com/users/inoas/gists{/gist_id}","starred_url":"https://api.github.com/users/inoas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inoas/subscriptions","organizations_url":"https://api.github.com/users/inoas/orgs","repos_url":"https://api.github.com/users/inoas/repos","events_url":"https://api.github.com/users/inoas/events{/privacy}","received_events_url":"https://api.github.com/users/inoas/received_events","type":"User","site_admin":false},"repo":{"id":65587084,"name":"cakephp","full_name":"inoas/cakephp","owner":{"login":"inoas","id":20972207,"avatar_url":"https://avatars.githubusercontent.com/u/20972207?v=3","gravatar_id":"","url":"https://api.github.com/users/inoas","html_url":"https://github.com/inoas","followers_url":"https://api.github.com/users/inoas/followers","following_url":"https://api.github.com/users/inoas/following{/other_user}","gists_url":"https://api.github.com/users/inoas/gists{/gist_id}","starred_url":"https://api.github.com/users/inoas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inoas/subscriptions","organizations_url":"https://api.github.com/users/inoas/orgs","repos_url":"https://api.github.com/users/inoas/repos","events_url":"https://api.github.com/users/inoas/events{/privacy}","received_events_url":"https://api.github.com/users/inoas/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/inoas/cakephp","description":"CakePHP: The Rapid Development Framework for PHP - Official Repository","fork":true,"url":"https://api.github.com/repos/inoas/cakephp","forks_url":"https://api.github.com/repos/inoas/cakephp/forks","keys_url":"https://api.github.com/repos/inoas/cakephp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/inoas/cakephp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/inoas/cakephp/teams","hooks_url":"https://api.github.com/repos/inoas/cakephp/hooks","issue_events_url":"https://api.github.com/repos/inoas/cakephp/issues/events{/number}","events_url":"https://api.github.com/repos/inoas/cakephp/events","assignees_url":"https://api.github.com/repos/inoas/cakephp/assignees{/user}","branches_url":"https://api.github.com/repos/inoas/cakephp/branches{/branch}","tags_url":"https://api.github.com/repos/inoas/cakephp/tags","blobs_url":"https://api.github.com/repos/inoas/cakephp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/inoas/cakephp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/inoas/cakephp/git/refs{/sha}","trees_url":"https://api.github.com/repos/inoas/cakephp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/inoas/cakephp/statuses/{sha}","languages_url":"https://api.github.com/repos/inoas/cakephp/languages","stargazers_url":"https://api.github.com/repos/inoas/cakephp/stargazers","contributors_url":"https://api.github.com/repos/inoas/cakephp/contributors","subscribers_url":"https://api.github.com/repos/inoas/cakephp/subscribers","subscription_url":"https://api.github.com/repos/inoas/cakephp/subscription","commits_url":"https://api.github.com/repos/inoas/cakephp/commits{/sha}","git_commits_url":"https://api.github.com/repos/inoas/cakephp/git/commits{/sha}","comments_url":"https://api.github.com/repos/inoas/cakephp/comments{/number}","issue_comment_url":"https://api.github.com/repos/inoas/cakephp/issues/comments{/number}","contents_url":"https://api.github.com/repos/inoas/cakephp/contents/{+path}","compare_url":"https://api.github.com/repos/inoas/cakephp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/inoas/cakephp/merges","archive_url":"https://api.github.com/repos/inoas/cakephp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/inoas/cakephp/downloads","issues_url":"https://api.github.com/repos/inoas/cakephp/issues{/number}","pulls_url":"https://api.github.com/repos/inoas/cakephp/pulls{/number}","milestones_url":"https://api.github.com/repos/inoas/cakephp/milestones{/number}","notifications_url":"https://api.github.com/repos/inoas/cakephp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/inoas/cakephp/labels{/name}","releases_url":"https://api.github.com/repos/inoas/cakephp/releases{/id}","deployments_url":"https://api.github.com/repos/inoas/cakephp/deployments","created_at":"2016-08-12T22:28:39Z","updated_at":"2016-08-12T22:28:48Z","pushed_at":"2016-09-16T02:51:16Z","git_url":"git://github.com/inoas/cakephp.git","ssh_url":"git@github.com:inoas/cakephp.git","clone_url":"https://github.com/inoas/cakephp.git","svn_url":"https://github.com/inoas/cakephp","homepage":"http://cakephp.org","size":65588,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"cakephp:master","ref":"master","sha":"2ad2b21cdd8b3bdd4ec76c9792ca8384164c24f9","user":{"login":"cakephp","id":23666,"avatar_url":"https://avatars.githubusercontent.com/u/23666?v=3","gravatar_id":"","url":"https://api.github.com/users/cakephp","html_url":"https://github.com/cakephp","followers_url":"https://api.github.com/users/cakephp/followers","following_url":"https://api.github.com/users/cakephp/following{/other_user}","gists_url":"https://api.github.com/users/cakephp/gists{/gist_id}","starred_url":"https://api.github.com/users/cakephp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cakephp/subscriptions","organizations_url":"https://api.github.com/users/cakephp/orgs","repos_url":"https://api.github.com/users/cakephp/repos","events_url":"https://api.github.com/users/cakephp/events{/privacy}","received_events_url":"https://api.github.com/users/cakephp/received_events","type":"Organization","site_admin":false},"repo":{"id":656494,"name":"cakephp","full_name":"cakephp/cakephp","owner":{"login":"cakephp","id":23666,"avatar_url":"https://avatars.githubusercontent.com/u/23666?v=3","gravatar_id":"","url":"https://api.github.com/users/cakephp","html_url":"https://github.com/cakephp","followers_url":"https://api.github.com/users/cakephp/followers","following_url":"https://api.github.com/users/cakephp/following{/other_user}","gists_url":"https://api.github.com/users/cakephp/gists{/gist_id}","starred_url":"https://api.github.com/users/cakephp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cakephp/subscriptions","organizations_url":"https://api.github.com/users/cakephp/orgs","repos_url":"https://api.github.com/users/cakephp/repos","events_url":"https://api.github.com/users/cakephp/events{/privacy}","received_events_url":"https://api.github.com/users/cakephp/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cakephp/cakephp","description":"CakePHP: The Rapid Development Framework for PHP - Official Repository","fork":false,"url":"https://api.github.com/repos/cakephp/cakephp","forks_url":"https://api.github.com/repos/cakephp/cakephp/forks","keys_url":"https://api.github.com/repos/cakephp/cakephp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cakephp/cakephp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cakephp/cakephp/teams","hooks_url":"https://api.github.com/repos/cakephp/cakephp/hooks","issue_events_url":"https://api.github.com/repos/cakephp/cakephp/issues/events{/number}","events_url":"https://api.github.com/repos/cakephp/cakephp/events","assignees_url":"https://api.github.com/repos/cakephp/cakephp/assignees{/user}","branches_url":"https://api.github.com/repos/cakephp/cakephp/branches{/branch}","tags_url":"https://api.github.com/repos/cakephp/cakephp/tags","blobs_url":"https://api.github.com/repos/cakephp/cakephp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cakephp/cakephp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cakephp/cakephp/git/refs{/sha}","trees_url":"https://api.github.com/repos/cakephp/cakephp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cakephp/cakephp/statuses/{sha}","languages_url":"https://api.github.com/repos/cakephp/cakephp/languages","stargazers_url":"https://api.github.com/repos/cakephp/cakephp/stargazers","contributors_url":"https://api.github.com/repos/cakephp/cakephp/contributors","subscribers_url":"https://api.github.com/repos/cakephp/cakephp/subscribers","subscription_url":"https://api.github.com/repos/cakephp/cakephp/subscription","commits_url":"https://api.github.com/repos/cakephp/cakephp/commits{/sha}","git_commits_url":"https://api.github.com/repos/cakephp/cakephp/git/commits{/sha}","comments_url":"https://api.github.com/repos/cakephp/cakephp/comments{/number}","issue_comment_url":"https://api.github.com/repos/cakephp/cakephp/issues/comments{/number}","contents_url":"https://api.github.com/repos/cakephp/cakephp/contents/{+path}","compare_url":"https://api.github.com/repos/cakephp/cakephp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cakephp/cakephp/merges","archive_url":"https://api.github.com/repos/cakephp/cakephp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cakephp/cakephp/downloads","issues_url":"https://api.github.com/repos/cakephp/cakephp/issues{/number}","pulls_url":"https://api.github.com/repos/cakephp/cakephp/pulls{/number}","milestones_url":"https://api.github.com/repos/cakephp/cakephp/milestones{/number}","notifications_url":"https://api.github.com/repos/cakephp/cakephp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cakephp/cakephp/labels{/name}","releases_url":"https://api.github.com/repos/cakephp/cakephp/releases{/id}","deployments_url":"https://api.github.com/repos/cakephp/cakephp/deployments","created_at":"2010-05-08T14:38:22Z","updated_at":"2016-09-15T21:40:47Z","pushed_at":"2016-09-16T02:51:16Z","git_url":"git://github.com/cakephp/cakephp.git","ssh_url":"git@github.com:cakephp/cakephp.git","clone_url":"https://github.com/cakephp/cakephp.git","svn_url":"https://github.com/cakephp/cakephp","homepage":"http://cakephp.org","size":131037,"stargazers_count":6712,"watchers_count":6712,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":3036,"mirror_url":null,"open_issues_count":201,"forks":3036,"open_issues":201,"watchers":6712,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cakephp/cakephp/pulls/9461"},"html":{"href":"https://github.com/cakephp/cakephp/pull/9461"},"issue":{"href":"https://api.github.com/repos/cakephp/cakephp/issues/9461"},"comments":{"href":"https://api.github.com/repos/cakephp/cakephp/issues/9461/comments"},"review_comments":{"href":"https://api.github.com/repos/cakephp/cakephp/pulls/9461/comments"},"review_comment":{"href":"https://api.github.com/repos/cakephp/cakephp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cakephp/cakephp/pulls/9461/commits"},"statuses":{"href":"https://api.github.com/repos/cakephp/cakephp/statuses/5bb65d78296e5fb0d94c77f99eb057ee1fd0c5b8"}}}}
{"actor":{"display_login":"inoas"}}