mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-22 06:42:41 +01:00
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
This commit is contained in:
parent
67b6bed92e
commit
5ee12bbad6
1 changed files with 0 additions and 5 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue