{"action":"created","comment":{"url":"https://api.github.com/repos/infection/infection/pulls/comments/172326131","pull_request_review_id":101324814,"id":172326131,"diff_hunk":"@@ -188,11 +193,21 @@ private function buildDynamicDependencies(InputInterface $input)\n                 $configLocation = \\pathinfo($infectionConfigFile, PATHINFO_DIRNAME);\n                 $json = file_get_contents($infectionConfigFile);\n             } catch (\\Exception $e) {\n+                $infectionConfigFile = null;\n                 $json = '{}';\n                 $configLocation = getcwd();\n             }\n \n-            return new InfectionConfig(json_decode($json), $c['filesystem'], $configLocation);\n+            $config = json_decode($json);\n+\n+            if (null === $config && 0 !== json_last_error() && $infectionConfigFile) {","path":"src/Console/Application.php","position":24,"original_position":24,"commit_id":"024893f651016eb972b97624e5283c40a06625d0","original_commit_id":"024893f651016eb972b97624e5283c40a06625d0","user":{"login":"BackEndTea","id":14289961,"avatar_url":"https://avatars1.githubusercontent.com/u/14289961?v=4","gravatar_id":"","url":"https://api.github.com/users/BackEndTea","html_url":"https://github.com/BackEndTea","followers_url":"https://api.github.com/users/BackEndTea/followers","following_url":"https://api.github.com/users/BackEndTea/following{/other_user}","gists_url":"https://api.github.com/users/BackEndTea/gists{/gist_id}","starred_url":"https://api.github.com/users/BackEndTea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BackEndTea/subscriptions","organizations_url":"https://api.github.com/users/BackEndTea/orgs","repos_url":"https://api.github.com/users/BackEndTea/repos","events_url":"https://api.github.com/users/BackEndTea/events{/privacy}","received_events_url":"https://api.github.com/users/BackEndTea/received_events","type":"User","site_admin":false},"body":"The `$infectionConfigFile` is somewhat useless, since it shouldn't be possible to have a json error with our default json.","created_at":"2018-03-05T20:59:04Z","updated_at":"2018-03-05T20:59:04Z","html_url":"https://github.com/infection/infection/pull/209#discussion_r172326131","pull_request_url":"https://api.github.com/repos/infection/infection/pulls/209","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/infection/infection/pulls/comments/172326131"},"html":{"href":"https://github.com/infection/infection/pull/209#discussion_r172326131"},"pull_request":{"href":"https://api.github.com/repos/infection/infection/pulls/209"}}},"pull_request":{"url":"https://api.github.com/repos/infection/infection/pulls/209","id":172983152,"html_url":"https://github.com/infection/infection/pull/209","diff_url":"https://github.com/infection/infection/pull/209.diff","patch_url":"https://github.com/infection/infection/pull/209.patch","issue_url":"https://api.github.com/repos/infection/infection/issues/209","number":209,"state":"open","locked":false,"title":"Fix: Throw exception if config file contains invalid JSON","user":{"login":"localheinz","id":605483,"avatar_url":"https://avatars2.githubusercontent.com/u/605483?v=4","gravatar_id":"","url":"https://api.github.com/users/localheinz","html_url":"https://github.com/localheinz","followers_url":"https://api.github.com/users/localheinz/followers","following_url":"https://api.github.com/users/localheinz/following{/other_user}","gists_url":"https://api.github.com/users/localheinz/gists{/gist_id}","starred_url":"https://api.github.com/users/localheinz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/localheinz/subscriptions","organizations_url":"https://api.github.com/users/localheinz/orgs","repos_url":"https://api.github.com/users/localheinz/repos","events_url":"https://api.github.com/users/localheinz/events{/privacy}","received_events_url":"https://api.github.com/users/localheinz/received_events","type":"User","site_admin":false},"body":"This PR\r\n\r\n- [x] throws an exception in `Console\\Application` when invalid JSON was found in a configuration file\r\n\r\nFixes https://github.com/infection/infection/issues/205.\r\n\r\n💁‍♂️ Not sure, should I add an end-to-end test for this?","created_at":"2018-03-05T20:53:06Z","updated_at":"2018-03-05T20:59:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b438a28d1b66796e16704cc081d290fe5825d882","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/infection/infection/pulls/209/commits","review_comments_url":"https://api.github.com/repos/infection/infection/pulls/209/comments","review_comment_url":"https://api.github.com/repos/infection/infection/pulls/comments{/number}","comments_url":"https://api.github.com/repos/infection/infection/issues/209/comments","statuses_url":"https://api.github.com/repos/infection/infection/statuses/024893f651016eb972b97624e5283c40a06625d0","head":{"label":"localheinz:fix/message","ref":"fix/message","sha":"024893f651016eb972b97624e5283c40a06625d0","user":{"login":"localheinz","id":605483,"avatar_url":"https://avatars2.githubusercontent.com/u/605483?v=4","gravatar_id":"","url":"https://api.github.com/users/localheinz","html_url":"https://github.com/localheinz","followers_url":"https://api.github.com/users/localheinz/followers","following_url":"https://api.github.com/users/localheinz/following{/other_user}","gists_url":"https://api.github.com/users/localheinz/gists{/gist_id}","starred_url":"https://api.github.com/users/localheinz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/localheinz/subscriptions","organizations_url":"https://api.github.com/users/localheinz/orgs","repos_url":"https://api.github.com/users/localheinz/repos","events_url":"https://api.github.com/users/localheinz/events{/privacy}","received_events_url":"https://api.github.com/users/localheinz/received_events","type":"User","site_admin":false},"repo":{"id":118186221,"name":"infection","full_name":"localheinz/infection","owner":{"login":"localheinz","id":605483,"avatar_url":"https://avatars2.githubusercontent.com/u/605483?v=4","gravatar_id":"","url":"https://api.github.com/users/localheinz","html_url":"https://github.com/localheinz","followers_url":"https://api.github.com/users/localheinz/followers","following_url":"https://api.github.com/users/localheinz/following{/other_user}","gists_url":"https://api.github.com/users/localheinz/gists{/gist_id}","starred_url":"https://api.github.com/users/localheinz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/localheinz/subscriptions","organizations_url":"https://api.github.com/users/localheinz/orgs","repos_url":"https://api.github.com/users/localheinz/repos","events_url":"https://api.github.com/users/localheinz/events{/privacy}","received_events_url":"https://api.github.com/users/localheinz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/localheinz/infection","description":"AST based PHP Mutation Testing Framework","fork":true,"url":"https://api.github.com/repos/localheinz/infection","forks_url":"https://api.github.com/repos/localheinz/infection/forks","keys_url":"https://api.github.com/repos/localheinz/infection/keys{/key_id}","collaborators_url":"https://api.github.com/repos/localheinz/infection/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/localheinz/infection/teams","hooks_url":"https://api.github.com/repos/localheinz/infection/hooks","issue_events_url":"https://api.github.com/repos/localheinz/infection/issues/events{/number}","events_url":"https://api.github.com/repos/localheinz/infection/events","assignees_url":"https://api.github.com/repos/localheinz/infection/assignees{/user}","branches_url":"https://api.github.com/repos/localheinz/infection/branches{/branch}","tags_url":"https://api.github.com/repos/localheinz/infection/tags","blobs_url":"https://api.github.com/repos/localheinz/infection/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/localheinz/infection/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/localheinz/infection/git/refs{/sha}","trees_url":"https://api.github.com/repos/localheinz/infection/git/trees{/sha}","statuses_url":"https://api.github.com/repos/localheinz/infection/statuses/{sha}","languages_url":"https://api.github.com/repos/localheinz/infection/languages","stargazers_url":"https://api.github.com/repos/localheinz/infection/stargazers","contributors_url":"https://api.github.com/repos/localheinz/infection/contributors","subscribers_url":"https://api.github.com/repos/localheinz/infection/subscribers","subscription_url":"https://api.github.com/repos/localheinz/infection/subscription","commits_url":"https://api.github.com/repos/localheinz/infection/commits{/sha}","git_commits_url":"https://api.github.com/repos/localheinz/infection/git/commits{/sha}","comments_url":"https://api.github.com/repos/localheinz/infection/comments{/number}","issue_comment_url":"https://api.github.com/repos/localheinz/infection/issues/comments{/number}","contents_url":"https://api.github.com/repos/localheinz/infection/contents/{+path}","compare_url":"https://api.github.com/repos/localheinz/infection/compare/{base}...{head}","merges_url":"https://api.github.com/repos/localheinz/infection/merges","archive_url":"https://api.github.com/repos/localheinz/infection/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/localheinz/infection/downloads","issues_url":"https://api.github.com/repos/localheinz/infection/issues{/number}","pulls_url":"https://api.github.com/repos/localheinz/infection/pulls{/number}","milestones_url":"https://api.github.com/repos/localheinz/infection/milestones{/number}","notifications_url":"https://api.github.com/repos/localheinz/infection/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/localheinz/infection/labels{/name}","releases_url":"https://api.github.com/repos/localheinz/infection/releases{/id}","deployments_url":"https://api.github.com/repos/localheinz/infection/deployments","created_at":"2018-01-19T22:33:55Z","updated_at":"2018-01-19T22:33:57Z","pushed_at":"2018-03-05T20:55:01Z","git_url":"git://github.com/localheinz/infection.git","ssh_url":"git@github.com:localheinz/infection.git","clone_url":"https://github.com/localheinz/infection.git","svn_url":"https://github.com/localheinz/infection","homepage":"https://infection.github.io","size":801,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"infection:master","ref":"master","sha":"926372c1094adc6ef85b56cd886811d017e5e964","user":{"login":"infection","id":29210618,"avatar_url":"https://avatars2.githubusercontent.com/u/29210618?v=4","gravatar_id":"","url":"https://api.github.com/users/infection","html_url":"https://github.com/infection","followers_url":"https://api.github.com/users/infection/followers","following_url":"https://api.github.com/users/infection/following{/other_user}","gists_url":"https://api.github.com/users/infection/gists{/gist_id}","starred_url":"https://api.github.com/users/infection/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/infection/subscriptions","organizations_url":"https://api.github.com/users/infection/orgs","repos_url":"https://api.github.com/users/infection/repos","events_url":"https://api.github.com/users/infection/events{/privacy}","received_events_url":"https://api.github.com/users/infection/received_events","type":"Organization","site_admin":false},"repo":{"id":95741878,"name":"infection","full_name":"infection/infection","owner":{"login":"infection","id":29210618,"avatar_url":"https://avatars2.githubusercontent.com/u/29210618?v=4","gravatar_id":"","url":"https://api.github.com/users/infection","html_url":"https://github.com/infection","followers_url":"https://api.github.com/users/infection/followers","following_url":"https://api.github.com/users/infection/following{/other_user}","gists_url":"https://api.github.com/users/infection/gists{/gist_id}","starred_url":"https://api.github.com/users/infection/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/infection/subscriptions","organizations_url":"https://api.github.com/users/infection/orgs","repos_url":"https://api.github.com/users/infection/repos","events_url":"https://api.github.com/users/infection/events{/privacy}","received_events_url":"https://api.github.com/users/infection/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/infection/infection","description":"AST based PHP Mutation Testing Framework","fork":false,"url":"https://api.github.com/repos/infection/infection","forks_url":"https://api.github.com/repos/infection/infection/forks","keys_url":"https://api.github.com/repos/infection/infection/keys{/key_id}","collaborators_url":"https://api.github.com/repos/infection/infection/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/infection/infection/teams","hooks_url":"https://api.github.com/repos/infection/infection/hooks","issue_events_url":"https://api.github.com/repos/infection/infection/issues/events{/number}","events_url":"https://api.github.com/repos/infection/infection/events","assignees_url":"https://api.github.com/repos/infection/infection/assignees{/user}","branches_url":"https://api.github.com/repos/infection/infection/branches{/branch}","tags_url":"https://api.github.com/repos/infection/infection/tags","blobs_url":"https://api.github.com/repos/infection/infection/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/infection/infection/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/infection/infection/git/refs{/sha}","trees_url":"https://api.github.com/repos/infection/infection/git/trees{/sha}","statuses_url":"https://api.github.com/repos/infection/infection/statuses/{sha}","languages_url":"https://api.github.com/repos/infection/infection/languages","stargazers_url":"https://api.github.com/repos/infection/infection/stargazers","contributors_url":"https://api.github.com/repos/infection/infection/contributors","subscribers_url":"https://api.github.com/repos/infection/infection/subscribers","subscription_url":"https://api.github.com/repos/infection/infection/subscription","commits_url":"https://api.github.com/repos/infection/infection/commits{/sha}","git_commits_url":"https://api.github.com/repos/infection/infection/git/commits{/sha}","comments_url":"https://api.github.com/repos/infection/infection/comments{/number}","issue_comment_url":"https://api.github.com/repos/infection/infection/issues/comments{/number}","contents_url":"https://api.github.com/repos/infection/infection/contents/{+path}","compare_url":"https://api.github.com/repos/infection/infection/compare/{base}...{head}","merges_url":"https://api.github.com/repos/infection/infection/merges","archive_url":"https://api.github.com/repos/infection/infection/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/infection/infection/downloads","issues_url":"https://api.github.com/repos/infection/infection/issues{/number}","pulls_url":"https://api.github.com/repos/infection/infection/pulls{/number}","milestones_url":"https://api.github.com/repos/infection/infection/milestones{/number}","notifications_url":"https://api.github.com/repos/infection/infection/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/infection/infection/labels{/name}","releases_url":"https://api.github.com/repos/infection/infection/releases{/id}","deployments_url":"https://api.github.com/repos/infection/infection/deployments","created_at":"2017-06-29T05:29:49Z","updated_at":"2018-03-05T19:44:55Z","pushed_at":"2018-03-05T20:55:35Z","git_url":"git://github.com/infection/infection.git","ssh_url":"git@github.com:infection/infection.git","clone_url":"https://github.com/infection/infection.git","svn_url":"https://github.com/infection/infection","homepage":"https://infection.github.io","size":822,"stargazers_count":349,"watchers_count":349,"language":"PHP","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":27,"mirror_url":null,"archived":false,"open_issues_count":33,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":27,"open_issues":33,"watchers":349,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/infection/infection/pulls/209"},"html":{"href":"https://github.com/infection/infection/pull/209"},"issue":{"href":"https://api.github.com/repos/infection/infection/issues/209"},"comments":{"href":"https://api.github.com/repos/infection/infection/issues/209/comments"},"review_comments":{"href":"https://api.github.com/repos/infection/infection/pulls/209/comments"},"review_comment":{"href":"https://api.github.com/repos/infection/infection/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/infection/infection/pulls/209/commits"},"statuses":{"href":"https://api.github.com/repos/infection/infection/statuses/024893f651016eb972b97624e5283c40a06625d0"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"BackEndTea"}}