diff --git a/tests/pathological/convert.php b/tests/pathological/convert.php index 51c6d42330..7c69002cde 100755 --- a/tests/pathological/convert.php +++ b/tests/pathological/convert.php @@ -35,10 +35,7 @@ exit(1); } -$config = []; -if (isset($argv[1])) { - $config = \json_decode($argv[1], true); -} +$config = json_decode($argv[1] ?? '[]', true) ?? []; $environment = new Environment($config); $environment->addExtension(new CommonMarkCoreExtension());