{"action":"created","comment":{"url":"https://api.github.com/repos/scribu/wp-scb-framework/pulls/comments/46095501","id":46095501,"diff_hunk":"@@ -59,8 +59,9 @@ public function get_key() {\n \t * @return mixed Whatever is in those fields.\n \t */\n \tpublic function get( $field = null, $default = null ) {\n+\t\t$option_array = get_option( $this->key, array() );\n+\t\t$option_array = gettype($option_array) != \"array\" ? [] : $option_array;","path":"Options.php","position":5,"original_position":5,"commit_id":"acd44a54991945bbba5f54bb02a908d051594a36","original_commit_id":"acd44a54991945bbba5f54bb02a908d051594a36","user":{"login":"knoxcard","id":7561190,"avatar_url":"https://avatars.githubusercontent.com/u/7561190?v=3","gravatar_id":"","url":"https://api.github.com/users/knoxcard","html_url":"https://github.com/knoxcard","followers_url":"https://api.github.com/users/knoxcard/followers","following_url":"https://api.github.com/users/knoxcard/following{/other_user}","gists_url":"https://api.github.com/users/knoxcard/gists{/gist_id}","starred_url":"https://api.github.com/users/knoxcard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knoxcard/subscriptions","organizations_url":"https://api.github.com/users/knoxcard/orgs","repos_url":"https://api.github.com/users/knoxcard/repos","events_url":"https://api.github.com/users/knoxcard/events{/privacy}","received_events_url":"https://api.github.com/users/knoxcard/received_events","type":"User","site_admin":false},"body":"My first change, forgot to include the last line for $option_array.  I agree, a cast would be easier.","created_at":"2015-11-29T17:48:30Z","updated_at":"2015-11-29T17:48:30Z","html_url":"https://github.com/scribu/wp-scb-framework/pull/48#discussion_r46095501","pull_request_url":"https://api.github.com/repos/scribu/wp-scb-framework/pulls/48","_links":{"self":{"href":"https://api.github.com/repos/scribu/wp-scb-framework/pulls/comments/46095501"},"html":{"href":"https://github.com/scribu/wp-scb-framework/pull/48#discussion_r46095501"},"pull_request":{"href":"https://api.github.com/repos/scribu/wp-scb-framework/pulls/48"}}},"pull_request":{"url":"https://api.github.com/repos/scribu/wp-scb-framework/pulls/48","id":52066251,"html_url":"https://github.com/scribu/wp-scb-framework/pull/48","diff_url":"https://github.com/scribu/wp-scb-framework/pull/48.diff","patch_url":"https://github.com/scribu/wp-scb-framework/pull/48.patch","issue_url":"https://api.github.com/repos/scribu/wp-scb-framework/issues/48","number":48,"state":"open","locked":false,"title":"Line 63 added to prevent boolean type from being passed to array_merge","user":{"login":"knoxcard","id":7561190,"avatar_url":"https://avatars.githubusercontent.com/u/7561190?v=3","gravatar_id":"","url":"https://api.github.com/users/knoxcard","html_url":"https://github.com/knoxcard","followers_url":"https://api.github.com/users/knoxcard/followers","following_url":"https://api.github.com/users/knoxcard/following{/other_user}","gists_url":"https://api.github.com/users/knoxcard/gists{/gist_id}","starred_url":"https://api.github.com/users/knoxcard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knoxcard/subscriptions","organizations_url":"https://api.github.com/users/knoxcard/orgs","repos_url":"https://api.github.com/users/knoxcard/repos","events_url":"https://api.github.com/users/knoxcard/events{/privacy}","received_events_url":"https://api.github.com/users/knoxcard/received_events","type":"User","site_admin":false},"body":"New pull request to fix array_merge problem","created_at":"2015-11-29T17:26:55Z","updated_at":"2015-11-29T17:48:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"041e6856d76c59876893f3186846c79bacc2ff88","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/scribu/wp-scb-framework/pulls/48/commits","review_comments_url":"https://api.github.com/repos/scribu/wp-scb-framework/pulls/48/comments","review_comment_url":"https://api.github.com/repos/scribu/wp-scb-framework/pulls/comments{/number}","comments_url":"https://api.github.com/repos/scribu/wp-scb-framework/issues/48/comments","statuses_url":"https://api.github.com/repos/scribu/wp-scb-framework/statuses/acd44a54991945bbba5f54bb02a908d051594a36","head":{"label":"knoxcard:patch-1","ref":"patch-1","sha":"acd44a54991945bbba5f54bb02a908d051594a36","user":{"login":"knoxcard","id":7561190,"avatar_url":"https://avatars.githubusercontent.com/u/7561190?v=3","gravatar_id":"","url":"https://api.github.com/users/knoxcard","html_url":"https://github.com/knoxcard","followers_url":"https://api.github.com/users/knoxcard/followers","following_url":"https://api.github.com/users/knoxcard/following{/other_user}","gists_url":"https://api.github.com/users/knoxcard/gists{/gist_id}","starred_url":"https://api.github.com/users/knoxcard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knoxcard/subscriptions","organizations_url":"https://api.github.com/users/knoxcard/orgs","repos_url":"https://api.github.com/users/knoxcard/repos","events_url":"https://api.github.com/users/knoxcard/events{/privacy}","received_events_url":"https://api.github.com/users/knoxcard/received_events","type":"User","site_admin":false},"repo":{"id":47072809,"name":"wp-scb-framework","full_name":"knoxcard/wp-scb-framework","owner":{"login":"knoxcard","id":7561190,"avatar_url":"https://avatars.githubusercontent.com/u/7561190?v=3","gravatar_id":"","url":"https://api.github.com/users/knoxcard","html_url":"https://github.com/knoxcard","followers_url":"https://api.github.com/users/knoxcard/followers","following_url":"https://api.github.com/users/knoxcard/following{/other_user}","gists_url":"https://api.github.com/users/knoxcard/gists{/gist_id}","starred_url":"https://api.github.com/users/knoxcard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/knoxcard/subscriptions","organizations_url":"https://api.github.com/users/knoxcard/orgs","repos_url":"https://api.github.com/users/knoxcard/repos","events_url":"https://api.github.com/users/knoxcard/events{/privacy}","received_events_url":"https://api.github.com/users/knoxcard/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/knoxcard/wp-scb-framework","description":"Utilities for speeding up WordPress plugin and theme development","fork":true,"url":"https://api.github.com/repos/knoxcard/wp-scb-framework","forks_url":"https://api.github.com/repos/knoxcard/wp-scb-framework/forks","keys_url":"https://api.github.com/repos/knoxcard/wp-scb-framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/knoxcard/wp-scb-framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/knoxcard/wp-scb-framework/teams","hooks_url":"https://api.github.com/repos/knoxcard/wp-scb-framework/hooks","issue_events_url":"https://api.github.com/repos/knoxcard/wp-scb-framework/issues/events{/number}","events_url":"https://api.github.com/repos/knoxcard/wp-scb-framework/events","assignees_url":"https://api.github.com/repos/knoxcard/wp-scb-framework/assignees{/user}","branches_url":"https://api.github.com/repos/knoxcard/wp-scb-framework/branches{/branch}","tags_url":"https://api.github.com/repos/knoxcard/wp-scb-framework/tags","blobs_url":"https://api.github.com/repos/knoxcard/wp-scb-framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/knoxcard/wp-scb-framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/knoxcard/wp-scb-framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/knoxcard/wp-scb-framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/knoxcard/wp-scb-framework/statuses/{sha}","languages_url":"https://api.github.com/repos/knoxcard/wp-scb-framework/languages","stargazers_url":"https://api.github.com/repos/knoxcard/wp-scb-framework/stargazers","contributors_url":"https://api.github.com/repos/knoxcard/wp-scb-framework/contributors","subscribers_url":"https://api.github.com/repos/knoxcard/wp-scb-framework/subscribers","subscription_url":"https://api.github.com/repos/knoxcard/wp-scb-framework/subscription","commits_url":"https://api.github.com/repos/knoxcard/wp-scb-framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/knoxcard/wp-scb-framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/knoxcard/wp-scb-framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/knoxcard/wp-scb-framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/knoxcard/wp-scb-framework/contents/{+path}","compare_url":"https://api.github.com/repos/knoxcard/wp-scb-framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/knoxcard/wp-scb-framework/merges","archive_url":"https://api.github.com/repos/knoxcard/wp-scb-framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/knoxcard/wp-scb-framework/downloads","issues_url":"https://api.github.com/repos/knoxcard/wp-scb-framework/issues{/number}","pulls_url":"https://api.github.com/repos/knoxcard/wp-scb-framework/pulls{/number}","milestones_url":"https://api.github.com/repos/knoxcard/wp-scb-framework/milestones{/number}","notifications_url":"https://api.github.com/repos/knoxcard/wp-scb-framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/knoxcard/wp-scb-framework/labels{/name}","releases_url":"https://api.github.com/repos/knoxcard/wp-scb-framework/releases{/id}","created_at":"2015-11-29T17:22:53Z","updated_at":"2015-11-29T17:22:54Z","pushed_at":"2015-11-29T17:47:25Z","git_url":"git://github.com/knoxcard/wp-scb-framework.git","ssh_url":"git@github.com:knoxcard/wp-scb-framework.git","clone_url":"https://github.com/knoxcard/wp-scb-framework.git","svn_url":"https://github.com/knoxcard/wp-scb-framework","homepage":"https://github.com/scribu/wp-scb-framework/wiki","size":167,"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":"scribu:master","ref":"master","sha":"95b23ac342fce16bf5eb8d939ac5a361b94b104b","user":{"login":"scribu","id":225715,"avatar_url":"https://avatars.githubusercontent.com/u/225715?v=3","gravatar_id":"","url":"https://api.github.com/users/scribu","html_url":"https://github.com/scribu","followers_url":"https://api.github.com/users/scribu/followers","following_url":"https://api.github.com/users/scribu/following{/other_user}","gists_url":"https://api.github.com/users/scribu/gists{/gist_id}","starred_url":"https://api.github.com/users/scribu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scribu/subscriptions","organizations_url":"https://api.github.com/users/scribu/orgs","repos_url":"https://api.github.com/users/scribu/repos","events_url":"https://api.github.com/users/scribu/events{/privacy}","received_events_url":"https://api.github.com/users/scribu/received_events","type":"User","site_admin":false},"repo":{"id":1136856,"name":"wp-scb-framework","full_name":"scribu/wp-scb-framework","owner":{"login":"scribu","id":225715,"avatar_url":"https://avatars.githubusercontent.com/u/225715?v=3","gravatar_id":"","url":"https://api.github.com/users/scribu","html_url":"https://github.com/scribu","followers_url":"https://api.github.com/users/scribu/followers","following_url":"https://api.github.com/users/scribu/following{/other_user}","gists_url":"https://api.github.com/users/scribu/gists{/gist_id}","starred_url":"https://api.github.com/users/scribu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scribu/subscriptions","organizations_url":"https://api.github.com/users/scribu/orgs","repos_url":"https://api.github.com/users/scribu/repos","events_url":"https://api.github.com/users/scribu/events{/privacy}","received_events_url":"https://api.github.com/users/scribu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/scribu/wp-scb-framework","description":"Utilities for speeding up WordPress plugin and theme development","fork":false,"url":"https://api.github.com/repos/scribu/wp-scb-framework","forks_url":"https://api.github.com/repos/scribu/wp-scb-framework/forks","keys_url":"https://api.github.com/repos/scribu/wp-scb-framework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scribu/wp-scb-framework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scribu/wp-scb-framework/teams","hooks_url":"https://api.github.com/repos/scribu/wp-scb-framework/hooks","issue_events_url":"https://api.github.com/repos/scribu/wp-scb-framework/issues/events{/number}","events_url":"https://api.github.com/repos/scribu/wp-scb-framework/events","assignees_url":"https://api.github.com/repos/scribu/wp-scb-framework/assignees{/user}","branches_url":"https://api.github.com/repos/scribu/wp-scb-framework/branches{/branch}","tags_url":"https://api.github.com/repos/scribu/wp-scb-framework/tags","blobs_url":"https://api.github.com/repos/scribu/wp-scb-framework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scribu/wp-scb-framework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scribu/wp-scb-framework/git/refs{/sha}","trees_url":"https://api.github.com/repos/scribu/wp-scb-framework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scribu/wp-scb-framework/statuses/{sha}","languages_url":"https://api.github.com/repos/scribu/wp-scb-framework/languages","stargazers_url":"https://api.github.com/repos/scribu/wp-scb-framework/stargazers","contributors_url":"https://api.github.com/repos/scribu/wp-scb-framework/contributors","subscribers_url":"https://api.github.com/repos/scribu/wp-scb-framework/subscribers","subscription_url":"https://api.github.com/repos/scribu/wp-scb-framework/subscription","commits_url":"https://api.github.com/repos/scribu/wp-scb-framework/commits{/sha}","git_commits_url":"https://api.github.com/repos/scribu/wp-scb-framework/git/commits{/sha}","comments_url":"https://api.github.com/repos/scribu/wp-scb-framework/comments{/number}","issue_comment_url":"https://api.github.com/repos/scribu/wp-scb-framework/issues/comments{/number}","contents_url":"https://api.github.com/repos/scribu/wp-scb-framework/contents/{+path}","compare_url":"https://api.github.com/repos/scribu/wp-scb-framework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scribu/wp-scb-framework/merges","archive_url":"https://api.github.com/repos/scribu/wp-scb-framework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scribu/wp-scb-framework/downloads","issues_url":"https://api.github.com/repos/scribu/wp-scb-framework/issues{/number}","pulls_url":"https://api.github.com/repos/scribu/wp-scb-framework/pulls{/number}","milestones_url":"https://api.github.com/repos/scribu/wp-scb-framework/milestones{/number}","notifications_url":"https://api.github.com/repos/scribu/wp-scb-framework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scribu/wp-scb-framework/labels{/name}","releases_url":"https://api.github.com/repos/scribu/wp-scb-framework/releases{/id}","created_at":"2010-12-04T00:15:13Z","updated_at":"2015-10-03T18:34:35Z","pushed_at":"2015-11-29T17:47:30Z","git_url":"git://github.com/scribu/wp-scb-framework.git","ssh_url":"git@github.com:scribu/wp-scb-framework.git","clone_url":"https://github.com/scribu/wp-scb-framework.git","svn_url":"https://github.com/scribu/wp-scb-framework","homepage":"https://github.com/scribu/wp-scb-framework/wiki","size":2096,"stargazers_count":178,"watchers_count":178,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":30,"mirror_url":null,"open_issues_count":5,"forks":30,"open_issues":5,"watchers":178,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/scribu/wp-scb-framework/pulls/48"},"html":{"href":"https://github.com/scribu/wp-scb-framework/pull/48"},"issue":{"href":"https://api.github.com/repos/scribu/wp-scb-framework/issues/48"},"comments":{"href":"https://api.github.com/repos/scribu/wp-scb-framework/issues/48/comments"},"review_comments":{"href":"https://api.github.com/repos/scribu/wp-scb-framework/pulls/48/comments"},"review_comment":{"href":"https://api.github.com/repos/scribu/wp-scb-framework/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/scribu/wp-scb-framework/pulls/48/commits"},"statuses":{"href":"https://api.github.com/repos/scribu/wp-scb-framework/statuses/acd44a54991945bbba5f54bb02a908d051594a36"}}}}