{"action":"created","comment":{"url":"https://api.github.com/repos/zendframework/zend-validator/pulls/comments/49945195","id":49945195,"diff_hunk":"@@ -18,6 +18,22 @@\n  */\n class BarcodeTest extends \\PHPUnit_Framework_TestCase\n {\n+    public function provideBarcodeConstructor()\n+    {\n+        return [\n+            [null],\n+            [[]],\n+        ];\n+    }\n+    /**\n+     * @dataProvider provideBarcodeConstructor\n+     */\n+    public function testBarcodeConstructorIsNullOrArrayButNoOptionsKey($options)\n+    {\n+        $barcode = new Barcode($options);\n+        $this->assertInstanceOf('Zend\\Validator\\Barcode\\Ean13', $barcode->getAdapter());","path":"test/BarcodeTest.php","position":null,"original_position":17,"commit_id":"59255763e85d10013c54d933e75ec7cfee821a47","original_commit_id":"e072f0cac3cc9e3814c7d8188955b32c21914423","user":{"login":"samsonasik","id":459648,"avatar_url":"https://avatars.githubusercontent.com/u/459648?v=3","gravatar_id":"","url":"https://api.github.com/users/samsonasik","html_url":"https://github.com/samsonasik","followers_url":"https://api.github.com/users/samsonasik/followers","following_url":"https://api.github.com/users/samsonasik/following{/other_user}","gists_url":"https://api.github.com/users/samsonasik/gists{/gist_id}","starred_url":"https://api.github.com/users/samsonasik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samsonasik/subscriptions","organizations_url":"https://api.github.com/users/samsonasik/orgs","repos_url":"https://api.github.com/users/samsonasik/repos","events_url":"https://api.github.com/users/samsonasik/events{/privacy}","received_events_url":"https://api.github.com/users/samsonasik/received_events","type":"User","site_admin":false},"body":"updated.","created_at":"2016-01-17T11:59:48Z","updated_at":"2016-01-17T11:59:48Z","html_url":"https://github.com/zendframework/zend-validator/pull/52#discussion_r49945195","pull_request_url":"https://api.github.com/repos/zendframework/zend-validator/pulls/52","_links":{"self":{"href":"https://api.github.com/repos/zendframework/zend-validator/pulls/comments/49945195"},"html":{"href":"https://github.com/zendframework/zend-validator/pull/52#discussion_r49945195"},"pull_request":{"href":"https://api.github.com/repos/zendframework/zend-validator/pulls/52"}}},"pull_request":{"url":"https://api.github.com/repos/zendframework/zend-validator/pulls/52","id":56273738,"html_url":"https://github.com/zendframework/zend-validator/pull/52","diff_url":"https://github.com/zendframework/zend-validator/pull/52.diff","patch_url":"https://github.com/zendframework/zend-validator/pull/52.patch","issue_url":"https://api.github.com/repos/zendframework/zend-validator/issues/52","number":52,"state":"open","locked":false,"title":"Fixes $options = null check when use Zend\\Valdator\\Barcode","user":{"login":"samsonasik","id":459648,"avatar_url":"https://avatars.githubusercontent.com/u/459648?v=3","gravatar_id":"","url":"https://api.github.com/users/samsonasik","html_url":"https://github.com/samsonasik","followers_url":"https://api.github.com/users/samsonasik/followers","following_url":"https://api.github.com/users/samsonasik/following{/other_user}","gists_url":"https://api.github.com/users/samsonasik/gists{/gist_id}","starred_url":"https://api.github.com/users/samsonasik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samsonasik/subscriptions","organizations_url":"https://api.github.com/users/samsonasik/orgs","repos_url":"https://api.github.com/users/samsonasik/repos","events_url":"https://api.github.com/users/samsonasik/events{/privacy}","received_events_url":"https://api.github.com/users/samsonasik/received_events","type":"User","site_admin":false},"body":"the constructor has optional `$options = null` but no check for it, this PR fixes it.","created_at":"2016-01-17T09:08:19Z","updated_at":"2016-01-17T11:59:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bd3624b38d917815b4de1e328fb41134902c6000","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/zendframework/zend-validator/pulls/52/commits","review_comments_url":"https://api.github.com/repos/zendframework/zend-validator/pulls/52/comments","review_comment_url":"https://api.github.com/repos/zendframework/zend-validator/pulls/comments{/number}","comments_url":"https://api.github.com/repos/zendframework/zend-validator/issues/52/comments","statuses_url":"https://api.github.com/repos/zendframework/zend-validator/statuses/59255763e85d10013c54d933e75ec7cfee821a47","head":{"label":"samsonasik:hotfix/options-null","ref":"hotfix/options-null","sha":"59255763e85d10013c54d933e75ec7cfee821a47","user":{"login":"samsonasik","id":459648,"avatar_url":"https://avatars.githubusercontent.com/u/459648?v=3","gravatar_id":"","url":"https://api.github.com/users/samsonasik","html_url":"https://github.com/samsonasik","followers_url":"https://api.github.com/users/samsonasik/followers","following_url":"https://api.github.com/users/samsonasik/following{/other_user}","gists_url":"https://api.github.com/users/samsonasik/gists{/gist_id}","starred_url":"https://api.github.com/users/samsonasik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samsonasik/subscriptions","organizations_url":"https://api.github.com/users/samsonasik/orgs","repos_url":"https://api.github.com/users/samsonasik/repos","events_url":"https://api.github.com/users/samsonasik/events{/privacy}","received_events_url":"https://api.github.com/users/samsonasik/received_events","type":"User","site_admin":false},"repo":{"id":36900680,"name":"zend-validator","full_name":"samsonasik/zend-validator","owner":{"login":"samsonasik","id":459648,"avatar_url":"https://avatars.githubusercontent.com/u/459648?v=3","gravatar_id":"","url":"https://api.github.com/users/samsonasik","html_url":"https://github.com/samsonasik","followers_url":"https://api.github.com/users/samsonasik/followers","following_url":"https://api.github.com/users/samsonasik/following{/other_user}","gists_url":"https://api.github.com/users/samsonasik/gists{/gist_id}","starred_url":"https://api.github.com/users/samsonasik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samsonasik/subscriptions","organizations_url":"https://api.github.com/users/samsonasik/orgs","repos_url":"https://api.github.com/users/samsonasik/repos","events_url":"https://api.github.com/users/samsonasik/events{/privacy}","received_events_url":"https://api.github.com/users/samsonasik/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/samsonasik/zend-validator","description":"Validator component from Zend Framework","fork":true,"url":"https://api.github.com/repos/samsonasik/zend-validator","forks_url":"https://api.github.com/repos/samsonasik/zend-validator/forks","keys_url":"https://api.github.com/repos/samsonasik/zend-validator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/samsonasik/zend-validator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/samsonasik/zend-validator/teams","hooks_url":"https://api.github.com/repos/samsonasik/zend-validator/hooks","issue_events_url":"https://api.github.com/repos/samsonasik/zend-validator/issues/events{/number}","events_url":"https://api.github.com/repos/samsonasik/zend-validator/events","assignees_url":"https://api.github.com/repos/samsonasik/zend-validator/assignees{/user}","branches_url":"https://api.github.com/repos/samsonasik/zend-validator/branches{/branch}","tags_url":"https://api.github.com/repos/samsonasik/zend-validator/tags","blobs_url":"https://api.github.com/repos/samsonasik/zend-validator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/samsonasik/zend-validator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/samsonasik/zend-validator/git/refs{/sha}","trees_url":"https://api.github.com/repos/samsonasik/zend-validator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/samsonasik/zend-validator/statuses/{sha}","languages_url":"https://api.github.com/repos/samsonasik/zend-validator/languages","stargazers_url":"https://api.github.com/repos/samsonasik/zend-validator/stargazers","contributors_url":"https://api.github.com/repos/samsonasik/zend-validator/contributors","subscribers_url":"https://api.github.com/repos/samsonasik/zend-validator/subscribers","subscription_url":"https://api.github.com/repos/samsonasik/zend-validator/subscription","commits_url":"https://api.github.com/repos/samsonasik/zend-validator/commits{/sha}","git_commits_url":"https://api.github.com/repos/samsonasik/zend-validator/git/commits{/sha}","comments_url":"https://api.github.com/repos/samsonasik/zend-validator/comments{/number}","issue_comment_url":"https://api.github.com/repos/samsonasik/zend-validator/issues/comments{/number}","contents_url":"https://api.github.com/repos/samsonasik/zend-validator/contents/{+path}","compare_url":"https://api.github.com/repos/samsonasik/zend-validator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/samsonasik/zend-validator/merges","archive_url":"https://api.github.com/repos/samsonasik/zend-validator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/samsonasik/zend-validator/downloads","issues_url":"https://api.github.com/repos/samsonasik/zend-validator/issues{/number}","pulls_url":"https://api.github.com/repos/samsonasik/zend-validator/pulls{/number}","milestones_url":"https://api.github.com/repos/samsonasik/zend-validator/milestones{/number}","notifications_url":"https://api.github.com/repos/samsonasik/zend-validator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/samsonasik/zend-validator/labels{/name}","releases_url":"https://api.github.com/repos/samsonasik/zend-validator/releases{/id}","created_at":"2015-06-04T23:12:47Z","updated_at":"2015-06-04T23:12:48Z","pushed_at":"2016-01-17T11:59:33Z","git_url":"git://github.com/samsonasik/zend-validator.git","ssh_url":"git@github.com:samsonasik/zend-validator.git","clone_url":"https://github.com/samsonasik/zend-validator.git","svn_url":"https://github.com/samsonasik/zend-validator","homepage":"https://github.com/zendframework/zf2","size":4061,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":false,"has_wiki":false,"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":"zendframework:master","ref":"master","sha":"33f0141fce05155fb75b5d68fac5856d3a21ebd2","user":{"login":"zendframework","id":296074,"avatar_url":"https://avatars.githubusercontent.com/u/296074?v=3","gravatar_id":"","url":"https://api.github.com/users/zendframework","html_url":"https://github.com/zendframework","followers_url":"https://api.github.com/users/zendframework/followers","following_url":"https://api.github.com/users/zendframework/following{/other_user}","gists_url":"https://api.github.com/users/zendframework/gists{/gist_id}","starred_url":"https://api.github.com/users/zendframework/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zendframework/subscriptions","organizations_url":"https://api.github.com/users/zendframework/orgs","repos_url":"https://api.github.com/users/zendframework/repos","events_url":"https://api.github.com/users/zendframework/events{/privacy}","received_events_url":"https://api.github.com/users/zendframework/received_events","type":"Organization","site_admin":false},"repo":{"id":35280836,"name":"zend-validator","full_name":"zendframework/zend-validator","owner":{"login":"zendframework","id":296074,"avatar_url":"https://avatars.githubusercontent.com/u/296074?v=3","gravatar_id":"","url":"https://api.github.com/users/zendframework","html_url":"https://github.com/zendframework","followers_url":"https://api.github.com/users/zendframework/followers","following_url":"https://api.github.com/users/zendframework/following{/other_user}","gists_url":"https://api.github.com/users/zendframework/gists{/gist_id}","starred_url":"https://api.github.com/users/zendframework/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zendframework/subscriptions","organizations_url":"https://api.github.com/users/zendframework/orgs","repos_url":"https://api.github.com/users/zendframework/repos","events_url":"https://api.github.com/users/zendframework/events{/privacy}","received_events_url":"https://api.github.com/users/zendframework/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/zendframework/zend-validator","description":"Validator component from Zend Framework","fork":false,"url":"https://api.github.com/repos/zendframework/zend-validator","forks_url":"https://api.github.com/repos/zendframework/zend-validator/forks","keys_url":"https://api.github.com/repos/zendframework/zend-validator/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zendframework/zend-validator/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zendframework/zend-validator/teams","hooks_url":"https://api.github.com/repos/zendframework/zend-validator/hooks","issue_events_url":"https://api.github.com/repos/zendframework/zend-validator/issues/events{/number}","events_url":"https://api.github.com/repos/zendframework/zend-validator/events","assignees_url":"https://api.github.com/repos/zendframework/zend-validator/assignees{/user}","branches_url":"https://api.github.com/repos/zendframework/zend-validator/branches{/branch}","tags_url":"https://api.github.com/repos/zendframework/zend-validator/tags","blobs_url":"https://api.github.com/repos/zendframework/zend-validator/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zendframework/zend-validator/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zendframework/zend-validator/git/refs{/sha}","trees_url":"https://api.github.com/repos/zendframework/zend-validator/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zendframework/zend-validator/statuses/{sha}","languages_url":"https://api.github.com/repos/zendframework/zend-validator/languages","stargazers_url":"https://api.github.com/repos/zendframework/zend-validator/stargazers","contributors_url":"https://api.github.com/repos/zendframework/zend-validator/contributors","subscribers_url":"https://api.github.com/repos/zendframework/zend-validator/subscribers","subscription_url":"https://api.github.com/repos/zendframework/zend-validator/subscription","commits_url":"https://api.github.com/repos/zendframework/zend-validator/commits{/sha}","git_commits_url":"https://api.github.com/repos/zendframework/zend-validator/git/commits{/sha}","comments_url":"https://api.github.com/repos/zendframework/zend-validator/comments{/number}","issue_comment_url":"https://api.github.com/repos/zendframework/zend-validator/issues/comments{/number}","contents_url":"https://api.github.com/repos/zendframework/zend-validator/contents/{+path}","compare_url":"https://api.github.com/repos/zendframework/zend-validator/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zendframework/zend-validator/merges","archive_url":"https://api.github.com/repos/zendframework/zend-validator/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zendframework/zend-validator/downloads","issues_url":"https://api.github.com/repos/zendframework/zend-validator/issues{/number}","pulls_url":"https://api.github.com/repos/zendframework/zend-validator/pulls{/number}","milestones_url":"https://api.github.com/repos/zendframework/zend-validator/milestones{/number}","notifications_url":"https://api.github.com/repos/zendframework/zend-validator/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zendframework/zend-validator/labels{/name}","releases_url":"https://api.github.com/repos/zendframework/zend-validator/releases{/id}","created_at":"2015-05-08T13:28:15Z","updated_at":"2016-01-05T17:02:58Z","pushed_at":"2016-01-17T11:59:33Z","git_url":"git://github.com/zendframework/zend-validator.git","ssh_url":"git@github.com:zendframework/zend-validator.git","clone_url":"https://github.com/zendframework/zend-validator.git","svn_url":"https://github.com/zendframework/zend-validator","homepage":"https://github.com/zendframework/zf2","size":4121,"stargazers_count":8,"watchers_count":8,"language":"PHP","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":24,"mirror_url":null,"open_issues_count":15,"forks":24,"open_issues":15,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/zendframework/zend-validator/pulls/52"},"html":{"href":"https://github.com/zendframework/zend-validator/pull/52"},"issue":{"href":"https://api.github.com/repos/zendframework/zend-validator/issues/52"},"comments":{"href":"https://api.github.com/repos/zendframework/zend-validator/issues/52/comments"},"review_comments":{"href":"https://api.github.com/repos/zendframework/zend-validator/pulls/52/comments"},"review_comment":{"href":"https://api.github.com/repos/zendframework/zend-validator/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/zendframework/zend-validator/pulls/52/commits"},"statuses":{"href":"https://api.github.com/repos/zendframework/zend-validator/statuses/59255763e85d10013c54d933e75ec7cfee821a47"}}}}