{"action":"created","comment":{"url":"https://api.github.com/repos/silverorange/json-api-client/pulls/comments/93688193","pull_request_review_id":14221522,"id":93688193,"diff_hunk":"@@ -19,7 +19,7 @@ class ResourceErrorException extends \\Exception\n     public function __construct($message, $code, array $error)\n     {\n         if ($message === '' && isset($error['detail'])) {\n-            $message = $error['detail'];\n+            $message = json_encode($error['detail']);","path":"src/Exception/ResourceErrorException.php","position":5,"original_position":5,"commit_id":"3198bae8e86db5756708ea2f7915d2085365da73","original_commit_id":"3198bae8e86db5756708ea2f7915d2085365da73","user":{"login":"charleswaddell","id":1316827,"avatar_url":"https://avatars.githubusercontent.com/u/1316827?v=3","gravatar_id":"","url":"https://api.github.com/users/charleswaddell","html_url":"https://github.com/charleswaddell","followers_url":"https://api.github.com/users/charleswaddell/followers","following_url":"https://api.github.com/users/charleswaddell/following{/other_user}","gists_url":"https://api.github.com/users/charleswaddell/gists{/gist_id}","starred_url":"https://api.github.com/users/charleswaddell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charleswaddell/subscriptions","organizations_url":"https://api.github.com/users/charleswaddell/orgs","repos_url":"https://api.github.com/users/charleswaddell/repos","events_url":"https://api.github.com/users/charleswaddell/events{/privacy}","received_events_url":"https://api.github.com/users/charleswaddell/received_events","type":"User","site_admin":false},"body":"I got an array to string conversion error when I tried strval().","created_at":"2016-12-22T20:03:51Z","updated_at":"2016-12-22T20:03:51Z","html_url":"https://github.com/silverorange/json-api-client/pull/11#discussion_r93688193","pull_request_url":"https://api.github.com/repos/silverorange/json-api-client/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/silverorange/json-api-client/pulls/comments/93688193"},"html":{"href":"https://github.com/silverorange/json-api-client/pull/11#discussion_r93688193"},"pull_request":{"href":"https://api.github.com/repos/silverorange/json-api-client/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/silverorange/json-api-client/pulls/11","id":99161585,"html_url":"https://github.com/silverorange/json-api-client/pull/11","diff_url":"https://github.com/silverorange/json-api-client/pull/11.diff","patch_url":"https://github.com/silverorange/json-api-client/pull/11.patch","issue_url":"https://api.github.com/repos/silverorange/json-api-client/issues/11","number":11,"state":"open","locked":false,"title":"Exception expects a string so ensure there is one","user":{"login":"charleswaddell","id":1316827,"avatar_url":"https://avatars.githubusercontent.com/u/1316827?v=3","gravatar_id":"","url":"https://api.github.com/users/charleswaddell","html_url":"https://github.com/charleswaddell","followers_url":"https://api.github.com/users/charleswaddell/followers","following_url":"https://api.github.com/users/charleswaddell/following{/other_user}","gists_url":"https://api.github.com/users/charleswaddell/gists{/gist_id}","starred_url":"https://api.github.com/users/charleswaddell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charleswaddell/subscriptions","organizations_url":"https://api.github.com/users/charleswaddell/orgs","repos_url":"https://api.github.com/users/charleswaddell/repos","events_url":"https://api.github.com/users/charleswaddell/events{/privacy}","received_events_url":"https://api.github.com/users/charleswaddell/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-12-22T20:00:09Z","updated_at":"2016-12-22T20:03:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8afca6681b0f49617e0f82ca97d2bd15f1299e5c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/silverorange/json-api-client/pulls/11/commits","review_comments_url":"https://api.github.com/repos/silverorange/json-api-client/pulls/11/comments","review_comment_url":"https://api.github.com/repos/silverorange/json-api-client/pulls/comments{/number}","comments_url":"https://api.github.com/repos/silverorange/json-api-client/issues/11/comments","statuses_url":"https://api.github.com/repos/silverorange/json-api-client/statuses/3198bae8e86db5756708ea2f7915d2085365da73","head":{"label":"charleswaddell:more-error-handling","ref":"more-error-handling","sha":"3198bae8e86db5756708ea2f7915d2085365da73","user":{"login":"charleswaddell","id":1316827,"avatar_url":"https://avatars.githubusercontent.com/u/1316827?v=3","gravatar_id":"","url":"https://api.github.com/users/charleswaddell","html_url":"https://github.com/charleswaddell","followers_url":"https://api.github.com/users/charleswaddell/followers","following_url":"https://api.github.com/users/charleswaddell/following{/other_user}","gists_url":"https://api.github.com/users/charleswaddell/gists{/gist_id}","starred_url":"https://api.github.com/users/charleswaddell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charleswaddell/subscriptions","organizations_url":"https://api.github.com/users/charleswaddell/orgs","repos_url":"https://api.github.com/users/charleswaddell/repos","events_url":"https://api.github.com/users/charleswaddell/events{/privacy}","received_events_url":"https://api.github.com/users/charleswaddell/received_events","type":"User","site_admin":false},"repo":{"id":74359311,"name":"json-api-client","full_name":"charleswaddell/json-api-client","owner":{"login":"charleswaddell","id":1316827,"avatar_url":"https://avatars.githubusercontent.com/u/1316827?v=3","gravatar_id":"","url":"https://api.github.com/users/charleswaddell","html_url":"https://github.com/charleswaddell","followers_url":"https://api.github.com/users/charleswaddell/followers","following_url":"https://api.github.com/users/charleswaddell/following{/other_user}","gists_url":"https://api.github.com/users/charleswaddell/gists{/gist_id}","starred_url":"https://api.github.com/users/charleswaddell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/charleswaddell/subscriptions","organizations_url":"https://api.github.com/users/charleswaddell/orgs","repos_url":"https://api.github.com/users/charleswaddell/repos","events_url":"https://api.github.com/users/charleswaddell/events{/privacy}","received_events_url":"https://api.github.com/users/charleswaddell/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/charleswaddell/json-api-client","description":"A PHP library for working with JSON:API APIs.","fork":true,"url":"https://api.github.com/repos/charleswaddell/json-api-client","forks_url":"https://api.github.com/repos/charleswaddell/json-api-client/forks","keys_url":"https://api.github.com/repos/charleswaddell/json-api-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/charleswaddell/json-api-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/charleswaddell/json-api-client/teams","hooks_url":"https://api.github.com/repos/charleswaddell/json-api-client/hooks","issue_events_url":"https://api.github.com/repos/charleswaddell/json-api-client/issues/events{/number}","events_url":"https://api.github.com/repos/charleswaddell/json-api-client/events","assignees_url":"https://api.github.com/repos/charleswaddell/json-api-client/assignees{/user}","branches_url":"https://api.github.com/repos/charleswaddell/json-api-client/branches{/branch}","tags_url":"https://api.github.com/repos/charleswaddell/json-api-client/tags","blobs_url":"https://api.github.com/repos/charleswaddell/json-api-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/charleswaddell/json-api-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/charleswaddell/json-api-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/charleswaddell/json-api-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/charleswaddell/json-api-client/statuses/{sha}","languages_url":"https://api.github.com/repos/charleswaddell/json-api-client/languages","stargazers_url":"https://api.github.com/repos/charleswaddell/json-api-client/stargazers","contributors_url":"https://api.github.com/repos/charleswaddell/json-api-client/contributors","subscribers_url":"https://api.github.com/repos/charleswaddell/json-api-client/subscribers","subscription_url":"https://api.github.com/repos/charleswaddell/json-api-client/subscription","commits_url":"https://api.github.com/repos/charleswaddell/json-api-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/charleswaddell/json-api-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/charleswaddell/json-api-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/charleswaddell/json-api-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/charleswaddell/json-api-client/contents/{+path}","compare_url":"https://api.github.com/repos/charleswaddell/json-api-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/charleswaddell/json-api-client/merges","archive_url":"https://api.github.com/repos/charleswaddell/json-api-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/charleswaddell/json-api-client/downloads","issues_url":"https://api.github.com/repos/charleswaddell/json-api-client/issues{/number}","pulls_url":"https://api.github.com/repos/charleswaddell/json-api-client/pulls{/number}","milestones_url":"https://api.github.com/repos/charleswaddell/json-api-client/milestones{/number}","notifications_url":"https://api.github.com/repos/charleswaddell/json-api-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/charleswaddell/json-api-client/labels{/name}","releases_url":"https://api.github.com/repos/charleswaddell/json-api-client/releases{/id}","deployments_url":"https://api.github.com/repos/charleswaddell/json-api-client/deployments","created_at":"2016-11-21T12:01:32Z","updated_at":"2016-11-21T12:06:45Z","pushed_at":"2016-12-22T19:59:59Z","git_url":"git://github.com/charleswaddell/json-api-client.git","ssh_url":"git@github.com:charleswaddell/json-api-client.git","clone_url":"https://github.com/charleswaddell/json-api-client.git","svn_url":"https://github.com/charleswaddell/json-api-client","homepage":null,"size":41,"stargazers_count":0,"watchers_count":0,"language":null,"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":"silverorange:master","ref":"master","sha":"2344fbe25c7a40f13c49d15be346b7c7b44906de","user":{"login":"silverorange","id":1337129,"avatar_url":"https://avatars.githubusercontent.com/u/1337129?v=3","gravatar_id":"","url":"https://api.github.com/users/silverorange","html_url":"https://github.com/silverorange","followers_url":"https://api.github.com/users/silverorange/followers","following_url":"https://api.github.com/users/silverorange/following{/other_user}","gists_url":"https://api.github.com/users/silverorange/gists{/gist_id}","starred_url":"https://api.github.com/users/silverorange/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silverorange/subscriptions","organizations_url":"https://api.github.com/users/silverorange/orgs","repos_url":"https://api.github.com/users/silverorange/repos","events_url":"https://api.github.com/users/silverorange/events{/privacy}","received_events_url":"https://api.github.com/users/silverorange/received_events","type":"Organization","site_admin":false},"repo":{"id":74358964,"name":"json-api-client","full_name":"silverorange/json-api-client","owner":{"login":"silverorange","id":1337129,"avatar_url":"https://avatars.githubusercontent.com/u/1337129?v=3","gravatar_id":"","url":"https://api.github.com/users/silverorange","html_url":"https://github.com/silverorange","followers_url":"https://api.github.com/users/silverorange/followers","following_url":"https://api.github.com/users/silverorange/following{/other_user}","gists_url":"https://api.github.com/users/silverorange/gists{/gist_id}","starred_url":"https://api.github.com/users/silverorange/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silverorange/subscriptions","organizations_url":"https://api.github.com/users/silverorange/orgs","repos_url":"https://api.github.com/users/silverorange/repos","events_url":"https://api.github.com/users/silverorange/events{/privacy}","received_events_url":"https://api.github.com/users/silverorange/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/silverorange/json-api-client","description":"A PHP library for working with JSON:API APIs.","fork":false,"url":"https://api.github.com/repos/silverorange/json-api-client","forks_url":"https://api.github.com/repos/silverorange/json-api-client/forks","keys_url":"https://api.github.com/repos/silverorange/json-api-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/silverorange/json-api-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/silverorange/json-api-client/teams","hooks_url":"https://api.github.com/repos/silverorange/json-api-client/hooks","issue_events_url":"https://api.github.com/repos/silverorange/json-api-client/issues/events{/number}","events_url":"https://api.github.com/repos/silverorange/json-api-client/events","assignees_url":"https://api.github.com/repos/silverorange/json-api-client/assignees{/user}","branches_url":"https://api.github.com/repos/silverorange/json-api-client/branches{/branch}","tags_url":"https://api.github.com/repos/silverorange/json-api-client/tags","blobs_url":"https://api.github.com/repos/silverorange/json-api-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/silverorange/json-api-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/silverorange/json-api-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/silverorange/json-api-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/silverorange/json-api-client/statuses/{sha}","languages_url":"https://api.github.com/repos/silverorange/json-api-client/languages","stargazers_url":"https://api.github.com/repos/silverorange/json-api-client/stargazers","contributors_url":"https://api.github.com/repos/silverorange/json-api-client/contributors","subscribers_url":"https://api.github.com/repos/silverorange/json-api-client/subscribers","subscription_url":"https://api.github.com/repos/silverorange/json-api-client/subscription","commits_url":"https://api.github.com/repos/silverorange/json-api-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/silverorange/json-api-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/silverorange/json-api-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/silverorange/json-api-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/silverorange/json-api-client/contents/{+path}","compare_url":"https://api.github.com/repos/silverorange/json-api-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/silverorange/json-api-client/merges","archive_url":"https://api.github.com/repos/silverorange/json-api-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/silverorange/json-api-client/downloads","issues_url":"https://api.github.com/repos/silverorange/json-api-client/issues{/number}","pulls_url":"https://api.github.com/repos/silverorange/json-api-client/pulls{/number}","milestones_url":"https://api.github.com/repos/silverorange/json-api-client/milestones{/number}","notifications_url":"https://api.github.com/repos/silverorange/json-api-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/silverorange/json-api-client/labels{/name}","releases_url":"https://api.github.com/repos/silverorange/json-api-client/releases{/id}","deployments_url":"https://api.github.com/repos/silverorange/json-api-client/deployments","created_at":"2016-11-21T11:56:33Z","updated_at":"2016-12-15T18:42:27Z","pushed_at":"2016-12-22T20:00:10Z","git_url":"git://github.com/silverorange/json-api-client.git","ssh_url":"git@github.com:silverorange/json-api-client.git","clone_url":"https://github.com/silverorange/json-api-client.git","svn_url":"https://github.com/silverorange/json-api-client","homepage":null,"size":80,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":1,"forks":5,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/silverorange/json-api-client/pulls/11"},"html":{"href":"https://github.com/silverorange/json-api-client/pull/11"},"issue":{"href":"https://api.github.com/repos/silverorange/json-api-client/issues/11"},"comments":{"href":"https://api.github.com/repos/silverorange/json-api-client/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/silverorange/json-api-client/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/silverorange/json-api-client/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/silverorange/json-api-client/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/silverorange/json-api-client/statuses/3198bae8e86db5756708ea2f7915d2085365da73"}}}}
{"actor":{"display_login":"charleswaddell"}}