{"action":"created","comment":{"url":"https://api.github.com/repos/phalcon/cphalcon/pulls/comments/79966608","id":79966608,"diff_hunk":"@@ -103,6 +108,10 @@ class Filter implements FilterInterface\n \t\t\t\t\t} else {\n \t\t\t\t\t\tlet value = this->_sanitize(value, filter);\n \t\t\t\t\t}\n+\t\t\t\t\t/**\n+\t\t\t\t\t * Account for any filters that may return a null value\n+\t\t\t\t\t */\n+\t\t\t\t\tif (value === null) {break;}","path":"phalcon/filter.zep","position":null,"original_position":58,"commit_id":"c6050e9c3195fb9294ea116c41611fcf399722fb","original_commit_id":"a95beccb667a23be20d5eec4d52553e9f51a76ba","user":{"login":"jabarihunt","id":2807764,"avatar_url":"https://avatars.githubusercontent.com/u/2807764?v=3","gravatar_id":"","url":"https://api.github.com/users/jabarihunt","html_url":"https://github.com/jabarihunt","followers_url":"https://api.github.com/users/jabarihunt/followers","following_url":"https://api.github.com/users/jabarihunt/following{/other_user}","gists_url":"https://api.github.com/users/jabarihunt/gists{/gist_id}","starred_url":"https://api.github.com/users/jabarihunt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jabarihunt/subscriptions","organizations_url":"https://api.github.com/users/jabarihunt/orgs","repos_url":"https://api.github.com/users/jabarihunt/repos","events_url":"https://api.github.com/users/jabarihunt/events{/privacy}","received_events_url":"https://api.github.com/users/jabarihunt/received_events","type":"User","site_admin":false},"body":"I changed the syntax in the last commit.","created_at":"2016-09-22T01:50:30Z","updated_at":"2016-09-22T01:50:30Z","html_url":"https://github.com/phalcon/cphalcon/pull/12243#discussion_r79966608","pull_request_url":"https://api.github.com/repos/phalcon/cphalcon/pulls/12243","_links":{"self":{"href":"https://api.github.com/repos/phalcon/cphalcon/pulls/comments/79966608"},"html":{"href":"https://github.com/phalcon/cphalcon/pull/12243#discussion_r79966608"},"pull_request":{"href":"https://api.github.com/repos/phalcon/cphalcon/pulls/12243"}}},"pull_request":{"url":"https://api.github.com/repos/phalcon/cphalcon/pulls/12243","id":86237304,"html_url":"https://github.com/phalcon/cphalcon/pull/12243","diff_url":"https://github.com/phalcon/cphalcon/pull/12243.diff","patch_url":"https://github.com/phalcon/cphalcon/pull/12243.patch","issue_url":"https://api.github.com/repos/phalcon/cphalcon/issues/12243","number":12243,"state":"open","locked":false,"title":"Added two new filters for use in the Filter->sanitization() method.  …","user":{"login":"jabarihunt","id":2807764,"avatar_url":"https://avatars.githubusercontent.com/u/2807764?v=3","gravatar_id":"","url":"https://api.github.com/users/jabarihunt","html_url":"https://github.com/jabarihunt","followers_url":"https://api.github.com/users/jabarihunt/followers","following_url":"https://api.github.com/users/jabarihunt/following{/other_user}","gists_url":"https://api.github.com/users/jabarihunt/gists{/gist_id}","starred_url":"https://api.github.com/users/jabarihunt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jabarihunt/subscriptions","organizations_url":"https://api.github.com/users/jabarihunt/orgs","repos_url":"https://api.github.com/users/jabarihunt/repos","events_url":"https://api.github.com/users/jabarihunt/events{/privacy}","received_events_url":"https://api.github.com/users/jabarihunt/received_events","type":"User","site_admin":false},"body":"Added two new filters for use in the Filter->_sanitization()_ method...\r\n\r\nThe first is FILTER_BOOLEAN, which returns the boolean value (true or false) if the value is an actual boolean (not 0, 1, 'true' as a string, etc) or it returns null if the value is not a true boolean.\r\n\r\nThe second is FILTER_BOOLEAN_CAST, which returns whatever the boolean would be of the casted value.  For example, 1 would return true and and empty string would return false.\r\n\r\n**_NOTE:_** FILTER_BOOLEAN is a special case that required a break in the sanitization switch statement since it may return null.  This was accounted for in related loops.","created_at":"2016-09-21T20:41:02Z","updated_at":"2016-09-22T01:50:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"03e433cb2911362522f278a4eaf676f12b1d809a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/phalcon/cphalcon/pulls/12243/commits","review_comments_url":"https://api.github.com/repos/phalcon/cphalcon/pulls/12243/comments","review_comment_url":"https://api.github.com/repos/phalcon/cphalcon/pulls/comments{/number}","comments_url":"https://api.github.com/repos/phalcon/cphalcon/issues/12243/comments","statuses_url":"https://api.github.com/repos/phalcon/cphalcon/statuses/c6050e9c3195fb9294ea116c41611fcf399722fb","head":{"label":"jabarihunt:Added-BOOLEAN-and-BOOLEAN_CAST-to-Phalcon-Filter","ref":"Added-BOOLEAN-and-BOOLEAN_CAST-to-Phalcon-Filter","sha":"c6050e9c3195fb9294ea116c41611fcf399722fb","user":{"login":"jabarihunt","id":2807764,"avatar_url":"https://avatars.githubusercontent.com/u/2807764?v=3","gravatar_id":"","url":"https://api.github.com/users/jabarihunt","html_url":"https://github.com/jabarihunt","followers_url":"https://api.github.com/users/jabarihunt/followers","following_url":"https://api.github.com/users/jabarihunt/following{/other_user}","gists_url":"https://api.github.com/users/jabarihunt/gists{/gist_id}","starred_url":"https://api.github.com/users/jabarihunt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jabarihunt/subscriptions","organizations_url":"https://api.github.com/users/jabarihunt/orgs","repos_url":"https://api.github.com/users/jabarihunt/repos","events_url":"https://api.github.com/users/jabarihunt/events{/privacy}","received_events_url":"https://api.github.com/users/jabarihunt/received_events","type":"User","site_admin":false},"repo":{"id":68854049,"name":"cphalcon","full_name":"jabarihunt/cphalcon","owner":{"login":"jabarihunt","id":2807764,"avatar_url":"https://avatars.githubusercontent.com/u/2807764?v=3","gravatar_id":"","url":"https://api.github.com/users/jabarihunt","html_url":"https://github.com/jabarihunt","followers_url":"https://api.github.com/users/jabarihunt/followers","following_url":"https://api.github.com/users/jabarihunt/following{/other_user}","gists_url":"https://api.github.com/users/jabarihunt/gists{/gist_id}","starred_url":"https://api.github.com/users/jabarihunt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jabarihunt/subscriptions","organizations_url":"https://api.github.com/users/jabarihunt/orgs","repos_url":"https://api.github.com/users/jabarihunt/repos","events_url":"https://api.github.com/users/jabarihunt/events{/privacy}","received_events_url":"https://api.github.com/users/jabarihunt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jabarihunt/cphalcon","description":"Web framework delivered as a C-extension for PHP","fork":true,"url":"https://api.github.com/repos/jabarihunt/cphalcon","forks_url":"https://api.github.com/repos/jabarihunt/cphalcon/forks","keys_url":"https://api.github.com/repos/jabarihunt/cphalcon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jabarihunt/cphalcon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jabarihunt/cphalcon/teams","hooks_url":"https://api.github.com/repos/jabarihunt/cphalcon/hooks","issue_events_url":"https://api.github.com/repos/jabarihunt/cphalcon/issues/events{/number}","events_url":"https://api.github.com/repos/jabarihunt/cphalcon/events","assignees_url":"https://api.github.com/repos/jabarihunt/cphalcon/assignees{/user}","branches_url":"https://api.github.com/repos/jabarihunt/cphalcon/branches{/branch}","tags_url":"https://api.github.com/repos/jabarihunt/cphalcon/tags","blobs_url":"https://api.github.com/repos/jabarihunt/cphalcon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jabarihunt/cphalcon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jabarihunt/cphalcon/git/refs{/sha}","trees_url":"https://api.github.com/repos/jabarihunt/cphalcon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jabarihunt/cphalcon/statuses/{sha}","languages_url":"https://api.github.com/repos/jabarihunt/cphalcon/languages","stargazers_url":"https://api.github.com/repos/jabarihunt/cphalcon/stargazers","contributors_url":"https://api.github.com/repos/jabarihunt/cphalcon/contributors","subscribers_url":"https://api.github.com/repos/jabarihunt/cphalcon/subscribers","subscription_url":"https://api.github.com/repos/jabarihunt/cphalcon/subscription","commits_url":"https://api.github.com/repos/jabarihunt/cphalcon/commits{/sha}","git_commits_url":"https://api.github.com/repos/jabarihunt/cphalcon/git/commits{/sha}","comments_url":"https://api.github.com/repos/jabarihunt/cphalcon/comments{/number}","issue_comment_url":"https://api.github.com/repos/jabarihunt/cphalcon/issues/comments{/number}","contents_url":"https://api.github.com/repos/jabarihunt/cphalcon/contents/{+path}","compare_url":"https://api.github.com/repos/jabarihunt/cphalcon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jabarihunt/cphalcon/merges","archive_url":"https://api.github.com/repos/jabarihunt/cphalcon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jabarihunt/cphalcon/downloads","issues_url":"https://api.github.com/repos/jabarihunt/cphalcon/issues{/number}","pulls_url":"https://api.github.com/repos/jabarihunt/cphalcon/pulls{/number}","milestones_url":"https://api.github.com/repos/jabarihunt/cphalcon/milestones{/number}","notifications_url":"https://api.github.com/repos/jabarihunt/cphalcon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jabarihunt/cphalcon/labels{/name}","releases_url":"https://api.github.com/repos/jabarihunt/cphalcon/releases{/id}","deployments_url":"https://api.github.com/repos/jabarihunt/cphalcon/deployments","created_at":"2016-09-21T20:15:30Z","updated_at":"2016-09-21T20:15:34Z","pushed_at":"2016-09-22T01:49:27Z","git_url":"git://github.com/jabarihunt/cphalcon.git","ssh_url":"git@github.com:jabarihunt/cphalcon.git","clone_url":"https://github.com/jabarihunt/cphalcon.git","svn_url":"https://github.com/jabarihunt/cphalcon","homepage":"phalconphp.com","size":115225,"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":"phalcon:3.0.x","ref":"3.0.x","sha":"753bfab785db9cd77fbc70f2f640c6594f80eae4","user":{"login":"phalcon","id":1221505,"avatar_url":"https://avatars.githubusercontent.com/u/1221505?v=3","gravatar_id":"","url":"https://api.github.com/users/phalcon","html_url":"https://github.com/phalcon","followers_url":"https://api.github.com/users/phalcon/followers","following_url":"https://api.github.com/users/phalcon/following{/other_user}","gists_url":"https://api.github.com/users/phalcon/gists{/gist_id}","starred_url":"https://api.github.com/users/phalcon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phalcon/subscriptions","organizations_url":"https://api.github.com/users/phalcon/orgs","repos_url":"https://api.github.com/users/phalcon/repos","events_url":"https://api.github.com/users/phalcon/events{/privacy}","received_events_url":"https://api.github.com/users/phalcon/received_events","type":"User","site_admin":false},"repo":{"id":2854337,"name":"cphalcon","full_name":"phalcon/cphalcon","owner":{"login":"phalcon","id":1221505,"avatar_url":"https://avatars.githubusercontent.com/u/1221505?v=3","gravatar_id":"","url":"https://api.github.com/users/phalcon","html_url":"https://github.com/phalcon","followers_url":"https://api.github.com/users/phalcon/followers","following_url":"https://api.github.com/users/phalcon/following{/other_user}","gists_url":"https://api.github.com/users/phalcon/gists{/gist_id}","starred_url":"https://api.github.com/users/phalcon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phalcon/subscriptions","organizations_url":"https://api.github.com/users/phalcon/orgs","repos_url":"https://api.github.com/users/phalcon/repos","events_url":"https://api.github.com/users/phalcon/events{/privacy}","received_events_url":"https://api.github.com/users/phalcon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/phalcon/cphalcon","description":"Web framework delivered as a C-extension for PHP","fork":false,"url":"https://api.github.com/repos/phalcon/cphalcon","forks_url":"https://api.github.com/repos/phalcon/cphalcon/forks","keys_url":"https://api.github.com/repos/phalcon/cphalcon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/phalcon/cphalcon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/phalcon/cphalcon/teams","hooks_url":"https://api.github.com/repos/phalcon/cphalcon/hooks","issue_events_url":"https://api.github.com/repos/phalcon/cphalcon/issues/events{/number}","events_url":"https://api.github.com/repos/phalcon/cphalcon/events","assignees_url":"https://api.github.com/repos/phalcon/cphalcon/assignees{/user}","branches_url":"https://api.github.com/repos/phalcon/cphalcon/branches{/branch}","tags_url":"https://api.github.com/repos/phalcon/cphalcon/tags","blobs_url":"https://api.github.com/repos/phalcon/cphalcon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/phalcon/cphalcon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/phalcon/cphalcon/git/refs{/sha}","trees_url":"https://api.github.com/repos/phalcon/cphalcon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/phalcon/cphalcon/statuses/{sha}","languages_url":"https://api.github.com/repos/phalcon/cphalcon/languages","stargazers_url":"https://api.github.com/repos/phalcon/cphalcon/stargazers","contributors_url":"https://api.github.com/repos/phalcon/cphalcon/contributors","subscribers_url":"https://api.github.com/repos/phalcon/cphalcon/subscribers","subscription_url":"https://api.github.com/repos/phalcon/cphalcon/subscription","commits_url":"https://api.github.com/repos/phalcon/cphalcon/commits{/sha}","git_commits_url":"https://api.github.com/repos/phalcon/cphalcon/git/commits{/sha}","comments_url":"https://api.github.com/repos/phalcon/cphalcon/comments{/number}","issue_comment_url":"https://api.github.com/repos/phalcon/cphalcon/issues/comments{/number}","contents_url":"https://api.github.com/repos/phalcon/cphalcon/contents/{+path}","compare_url":"https://api.github.com/repos/phalcon/cphalcon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/phalcon/cphalcon/merges","archive_url":"https://api.github.com/repos/phalcon/cphalcon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/phalcon/cphalcon/downloads","issues_url":"https://api.github.com/repos/phalcon/cphalcon/issues{/number}","pulls_url":"https://api.github.com/repos/phalcon/cphalcon/pulls{/number}","milestones_url":"https://api.github.com/repos/phalcon/cphalcon/milestones{/number}","notifications_url":"https://api.github.com/repos/phalcon/cphalcon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/phalcon/cphalcon/labels{/name}","releases_url":"https://api.github.com/repos/phalcon/cphalcon/releases{/id}","deployments_url":"https://api.github.com/repos/phalcon/cphalcon/deployments","created_at":"2011-11-26T05:52:50Z","updated_at":"2016-09-21T15:02:55Z","pushed_at":"2016-09-22T01:49:29Z","git_url":"git://github.com/phalcon/cphalcon.git","ssh_url":"git@github.com:phalcon/cphalcon.git","clone_url":"https://github.com/phalcon/cphalcon.git","svn_url":"https://github.com/phalcon/cphalcon","homepage":"phalconphp.com","size":168220,"stargazers_count":7209,"watchers_count":7209,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1349,"mirror_url":null,"open_issues_count":738,"forks":1349,"open_issues":738,"watchers":7209,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/phalcon/cphalcon/pulls/12243"},"html":{"href":"https://github.com/phalcon/cphalcon/pull/12243"},"issue":{"href":"https://api.github.com/repos/phalcon/cphalcon/issues/12243"},"comments":{"href":"https://api.github.com/repos/phalcon/cphalcon/issues/12243/comments"},"review_comments":{"href":"https://api.github.com/repos/phalcon/cphalcon/pulls/12243/comments"},"review_comment":{"href":"https://api.github.com/repos/phalcon/cphalcon/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/phalcon/cphalcon/pulls/12243/commits"},"statuses":{"href":"https://api.github.com/repos/phalcon/cphalcon/statuses/c6050e9c3195fb9294ea116c41611fcf399722fb"}}}}
{"actor":{"display_login":"jabarihunt"}}