From 5ee12bbad6521861e1295530c0a4c2c3a35152ed Mon Sep 17 00:00:00 2001 From: Joshua Spence Date: Sat, 21 Jun 2014 00:39:20 +1000 Subject: [PATCH] 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 --- src/lint/linter/__tests__/ArcanistLinterTestCase.php | 5 ----- 1 file changed, 5 deletions(-) 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( -- 2.43.0