From: Joshua Spence Date: Fri, 20 Jun 2014 14:39:20 +0000 (+1000) Subject: Update callsites of `phutil_json_decode`. X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=5ee12bbad6521861e1295530c0a4c2c3a35152ed;p=arcanist.git Update callsites of `phutil_json_decode`. Summary: Depends on D9634. `phutil_json_decode` now throws an exception on invalid JSON. Test Plan: Ran the unit tests. Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: epriestley, Korvin Differential Revision: https://secure.phabricator.com/D9641 --- diff --git a/src/lint/linter/__tests__/ArcanistLinterTestCase.php b/src/lint/linter/__tests__/ArcanistLinterTestCase.php index 53c65f0f..43ff70a9 100644 --- a/src/lint/linter/__tests__/ArcanistLinterTestCase.php +++ b/src/lint/linter/__tests__/ArcanistLinterTestCase.php @@ -39,11 +39,6 @@ abstract class ArcanistLinterTestCase extends ArcanistPhutilTestCase { $basename = basename($file); $config = phutil_json_decode($config); - if (!is_array($config)) { - throw new Exception( - "Invalid configuration in test '{$basename}', not valid JSON."); - } - PhutilTypeSpec::checkMap( $config, array(