{"action":"created","comment":{"url":"https://api.github.com/repos/airbrake/phpbrake/pulls/comments/40785309","id":40785309,"diff_hunk":"@@ -41,39 +41,46 @@ public function addFilter($filter)\n         $this->filters[] = $filter;\n     }\n \n-    /**\n-     * Builds Airbrake notice from exception.\n-     *\n-     * @param \\Exception $exc Exception or class that implements similar interface.\n-     */\n-    public function buildNotice($exc)\n+    private function backtrace($exc)\n     {\n         $backtrace = [];\n         $trace = $exc->getTrace();\n+        if (!$exc instanceof Errors\\Base) {","path":"src/Notifier.php","position":14,"original_position":14,"commit_id":"eb6f48a13b44b42f0a12e847d6227fd1987fa1a8","original_commit_id":"eb6f48a13b44b42f0a12e847d6227fd1987fa1a8","user":{"login":"kyrylo","id":1079123,"avatar_url":"https://avatars.githubusercontent.com/u/1079123?v=3","gravatar_id":"","url":"https://api.github.com/users/kyrylo","html_url":"https://github.com/kyrylo","followers_url":"https://api.github.com/users/kyrylo/followers","following_url":"https://api.github.com/users/kyrylo/following{/other_user}","gists_url":"https://api.github.com/users/kyrylo/gists{/gist_id}","starred_url":"https://api.github.com/users/kyrylo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyrylo/subscriptions","organizations_url":"https://api.github.com/users/kyrylo/orgs","repos_url":"https://api.github.com/users/kyrylo/repos","events_url":"https://api.github.com/users/kyrylo/events{/privacy}","received_events_url":"https://api.github.com/users/kyrylo/received_events","type":"User","site_admin":false},"body":"Could you explain these shenanigans? Ideally, it would be nice to add a comment to this function, because it's quite complex.","created_at":"2015-09-30T12:01:44Z","updated_at":"2015-09-30T12:01:44Z","html_url":"https://github.com/airbrake/phpbrake/pull/19#discussion_r40785309","pull_request_url":"https://api.github.com/repos/airbrake/phpbrake/pulls/19","_links":{"self":{"href":"https://api.github.com/repos/airbrake/phpbrake/pulls/comments/40785309"},"html":{"href":"https://github.com/airbrake/phpbrake/pull/19#discussion_r40785309"},"pull_request":{"href":"https://api.github.com/repos/airbrake/phpbrake/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/airbrake/phpbrake/pulls/19","id":46392276,"html_url":"https://github.com/airbrake/phpbrake/pull/19","diff_url":"https://github.com/airbrake/phpbrake/pull/19.diff","patch_url":"https://github.com/airbrake/phpbrake/pull/19.patch","issue_url":"https://api.github.com/repos/airbrake/phpbrake/issues/19","number":19,"state":"open","locked":false,"title":"tests: add ErrorHandler tests.","user":{"login":"vmihailenco","id":290976,"avatar_url":"https://avatars.githubusercontent.com/u/290976?v=3","gravatar_id":"","url":"https://api.github.com/users/vmihailenco","html_url":"https://github.com/vmihailenco","followers_url":"https://api.github.com/users/vmihailenco/followers","following_url":"https://api.github.com/users/vmihailenco/following{/other_user}","gists_url":"https://api.github.com/users/vmihailenco/gists{/gist_id}","starred_url":"https://api.github.com/users/vmihailenco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vmihailenco/subscriptions","organizations_url":"https://api.github.com/users/vmihailenco/orgs","repos_url":"https://api.github.com/users/vmihailenco/repos","events_url":"https://api.github.com/users/vmihailenco/events{/privacy}","received_events_url":"https://api.github.com/users/vmihailenco/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-30T11:56:14Z","updated_at":"2015-09-30T12:01:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"165c7d2aca9317157fb83383b21d3af2c971d425","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/airbrake/phpbrake/pulls/19/commits","review_comments_url":"https://api.github.com/repos/airbrake/phpbrake/pulls/19/comments","review_comment_url":"https://api.github.com/repos/airbrake/phpbrake/pulls/comments{/number}","comments_url":"https://api.github.com/repos/airbrake/phpbrake/issues/19/comments","statuses_url":"https://api.github.com/repos/airbrake/phpbrake/statuses/eb6f48a13b44b42f0a12e847d6227fd1987fa1a8","head":{"label":"airbrake:fix/error-handler-test","ref":"fix/error-handler-test","sha":"eb6f48a13b44b42f0a12e847d6227fd1987fa1a8","user":{"login":"airbrake","id":1015434,"avatar_url":"https://avatars.githubusercontent.com/u/1015434?v=3","gravatar_id":"","url":"https://api.github.com/users/airbrake","html_url":"https://github.com/airbrake","followers_url":"https://api.github.com/users/airbrake/followers","following_url":"https://api.github.com/users/airbrake/following{/other_user}","gists_url":"https://api.github.com/users/airbrake/gists{/gist_id}","starred_url":"https://api.github.com/users/airbrake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/airbrake/subscriptions","organizations_url":"https://api.github.com/users/airbrake/orgs","repos_url":"https://api.github.com/users/airbrake/repos","events_url":"https://api.github.com/users/airbrake/events{/privacy}","received_events_url":"https://api.github.com/users/airbrake/received_events","type":"Organization","site_admin":false},"repo":{"id":39013886,"name":"phpbrake","full_name":"airbrake/phpbrake","owner":{"login":"airbrake","id":1015434,"avatar_url":"https://avatars.githubusercontent.com/u/1015434?v=3","gravatar_id":"","url":"https://api.github.com/users/airbrake","html_url":"https://github.com/airbrake","followers_url":"https://api.github.com/users/airbrake/followers","following_url":"https://api.github.com/users/airbrake/following{/other_user}","gists_url":"https://api.github.com/users/airbrake/gists{/gist_id}","starred_url":"https://api.github.com/users/airbrake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/airbrake/subscriptions","organizations_url":"https://api.github.com/users/airbrake/orgs","repos_url":"https://api.github.com/users/airbrake/repos","events_url":"https://api.github.com/users/airbrake/events{/privacy}","received_events_url":"https://api.github.com/users/airbrake/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/airbrake/phpbrake","description":"The official Airbrake PHP error notifier","fork":false,"url":"https://api.github.com/repos/airbrake/phpbrake","forks_url":"https://api.github.com/repos/airbrake/phpbrake/forks","keys_url":"https://api.github.com/repos/airbrake/phpbrake/keys{/key_id}","collaborators_url":"https://api.github.com/repos/airbrake/phpbrake/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/airbrake/phpbrake/teams","hooks_url":"https://api.github.com/repos/airbrake/phpbrake/hooks","issue_events_url":"https://api.github.com/repos/airbrake/phpbrake/issues/events{/number}","events_url":"https://api.github.com/repos/airbrake/phpbrake/events","assignees_url":"https://api.github.com/repos/airbrake/phpbrake/assignees{/user}","branches_url":"https://api.github.com/repos/airbrake/phpbrake/branches{/branch}","tags_url":"https://api.github.com/repos/airbrake/phpbrake/tags","blobs_url":"https://api.github.com/repos/airbrake/phpbrake/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/airbrake/phpbrake/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/airbrake/phpbrake/git/refs{/sha}","trees_url":"https://api.github.com/repos/airbrake/phpbrake/git/trees{/sha}","statuses_url":"https://api.github.com/repos/airbrake/phpbrake/statuses/{sha}","languages_url":"https://api.github.com/repos/airbrake/phpbrake/languages","stargazers_url":"https://api.github.com/repos/airbrake/phpbrake/stargazers","contributors_url":"https://api.github.com/repos/airbrake/phpbrake/contributors","subscribers_url":"https://api.github.com/repos/airbrake/phpbrake/subscribers","subscription_url":"https://api.github.com/repos/airbrake/phpbrake/subscription","commits_url":"https://api.github.com/repos/airbrake/phpbrake/commits{/sha}","git_commits_url":"https://api.github.com/repos/airbrake/phpbrake/git/commits{/sha}","comments_url":"https://api.github.com/repos/airbrake/phpbrake/comments{/number}","issue_comment_url":"https://api.github.com/repos/airbrake/phpbrake/issues/comments{/number}","contents_url":"https://api.github.com/repos/airbrake/phpbrake/contents/{+path}","compare_url":"https://api.github.com/repos/airbrake/phpbrake/compare/{base}...{head}","merges_url":"https://api.github.com/repos/airbrake/phpbrake/merges","archive_url":"https://api.github.com/repos/airbrake/phpbrake/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/airbrake/phpbrake/downloads","issues_url":"https://api.github.com/repos/airbrake/phpbrake/issues{/number}","pulls_url":"https://api.github.com/repos/airbrake/phpbrake/pulls{/number}","milestones_url":"https://api.github.com/repos/airbrake/phpbrake/milestones{/number}","notifications_url":"https://api.github.com/repos/airbrake/phpbrake/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/airbrake/phpbrake/labels{/name}","releases_url":"https://api.github.com/repos/airbrake/phpbrake/releases{/id}","created_at":"2015-07-13T13:32:45Z","updated_at":"2015-09-18T00:22:06Z","pushed_at":"2015-09-30T11:56:14Z","git_url":"git://github.com/airbrake/phpbrake.git","ssh_url":"git@github.com:airbrake/phpbrake.git","clone_url":"https://github.com/airbrake/phpbrake.git","svn_url":"https://github.com/airbrake/phpbrake","homepage":"https://airbrake.io","size":299,"stargazers_count":4,"watchers_count":4,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":4,"default_branch":"master"}},"base":{"label":"airbrake:master","ref":"master","sha":"2323e2797012f2d030724505c8387f041cf3a442","user":{"login":"airbrake","id":1015434,"avatar_url":"https://avatars.githubusercontent.com/u/1015434?v=3","gravatar_id":"","url":"https://api.github.com/users/airbrake","html_url":"https://github.com/airbrake","followers_url":"https://api.github.com/users/airbrake/followers","following_url":"https://api.github.com/users/airbrake/following{/other_user}","gists_url":"https://api.github.com/users/airbrake/gists{/gist_id}","starred_url":"https://api.github.com/users/airbrake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/airbrake/subscriptions","organizations_url":"https://api.github.com/users/airbrake/orgs","repos_url":"https://api.github.com/users/airbrake/repos","events_url":"https://api.github.com/users/airbrake/events{/privacy}","received_events_url":"https://api.github.com/users/airbrake/received_events","type":"Organization","site_admin":false},"repo":{"id":39013886,"name":"phpbrake","full_name":"airbrake/phpbrake","owner":{"login":"airbrake","id":1015434,"avatar_url":"https://avatars.githubusercontent.com/u/1015434?v=3","gravatar_id":"","url":"https://api.github.com/users/airbrake","html_url":"https://github.com/airbrake","followers_url":"https://api.github.com/users/airbrake/followers","following_url":"https://api.github.com/users/airbrake/following{/other_user}","gists_url":"https://api.github.com/users/airbrake/gists{/gist_id}","starred_url":"https://api.github.com/users/airbrake/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/airbrake/subscriptions","organizations_url":"https://api.github.com/users/airbrake/orgs","repos_url":"https://api.github.com/users/airbrake/repos","events_url":"https://api.github.com/users/airbrake/events{/privacy}","received_events_url":"https://api.github.com/users/airbrake/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/airbrake/phpbrake","description":"The official Airbrake PHP error notifier","fork":false,"url":"https://api.github.com/repos/airbrake/phpbrake","forks_url":"https://api.github.com/repos/airbrake/phpbrake/forks","keys_url":"https://api.github.com/repos/airbrake/phpbrake/keys{/key_id}","collaborators_url":"https://api.github.com/repos/airbrake/phpbrake/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/airbrake/phpbrake/teams","hooks_url":"https://api.github.com/repos/airbrake/phpbrake/hooks","issue_events_url":"https://api.github.com/repos/airbrake/phpbrake/issues/events{/number}","events_url":"https://api.github.com/repos/airbrake/phpbrake/events","assignees_url":"https://api.github.com/repos/airbrake/phpbrake/assignees{/user}","branches_url":"https://api.github.com/repos/airbrake/phpbrake/branches{/branch}","tags_url":"https://api.github.com/repos/airbrake/phpbrake/tags","blobs_url":"https://api.github.com/repos/airbrake/phpbrake/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/airbrake/phpbrake/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/airbrake/phpbrake/git/refs{/sha}","trees_url":"https://api.github.com/repos/airbrake/phpbrake/git/trees{/sha}","statuses_url":"https://api.github.com/repos/airbrake/phpbrake/statuses/{sha}","languages_url":"https://api.github.com/repos/airbrake/phpbrake/languages","stargazers_url":"https://api.github.com/repos/airbrake/phpbrake/stargazers","contributors_url":"https://api.github.com/repos/airbrake/phpbrake/contributors","subscribers_url":"https://api.github.com/repos/airbrake/phpbrake/subscribers","subscription_url":"https://api.github.com/repos/airbrake/phpbrake/subscription","commits_url":"https://api.github.com/repos/airbrake/phpbrake/commits{/sha}","git_commits_url":"https://api.github.com/repos/airbrake/phpbrake/git/commits{/sha}","comments_url":"https://api.github.com/repos/airbrake/phpbrake/comments{/number}","issue_comment_url":"https://api.github.com/repos/airbrake/phpbrake/issues/comments{/number}","contents_url":"https://api.github.com/repos/airbrake/phpbrake/contents/{+path}","compare_url":"https://api.github.com/repos/airbrake/phpbrake/compare/{base}...{head}","merges_url":"https://api.github.com/repos/airbrake/phpbrake/merges","archive_url":"https://api.github.com/repos/airbrake/phpbrake/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/airbrake/phpbrake/downloads","issues_url":"https://api.github.com/repos/airbrake/phpbrake/issues{/number}","pulls_url":"https://api.github.com/repos/airbrake/phpbrake/pulls{/number}","milestones_url":"https://api.github.com/repos/airbrake/phpbrake/milestones{/number}","notifications_url":"https://api.github.com/repos/airbrake/phpbrake/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/airbrake/phpbrake/labels{/name}","releases_url":"https://api.github.com/repos/airbrake/phpbrake/releases{/id}","created_at":"2015-07-13T13:32:45Z","updated_at":"2015-09-18T00:22:06Z","pushed_at":"2015-09-30T11:56:14Z","git_url":"git://github.com/airbrake/phpbrake.git","ssh_url":"git@github.com:airbrake/phpbrake.git","clone_url":"https://github.com/airbrake/phpbrake.git","svn_url":"https://github.com/airbrake/phpbrake","homepage":"https://airbrake.io","size":299,"stargazers_count":4,"watchers_count":4,"language":"PHP","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/airbrake/phpbrake/pulls/19"},"html":{"href":"https://github.com/airbrake/phpbrake/pull/19"},"issue":{"href":"https://api.github.com/repos/airbrake/phpbrake/issues/19"},"comments":{"href":"https://api.github.com/repos/airbrake/phpbrake/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/airbrake/phpbrake/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/airbrake/phpbrake/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/airbrake/phpbrake/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/airbrake/phpbrake/statuses/eb6f48a13b44b42f0a12e847d6227fd1987fa1a8"}}}}