Skip to content

Commit

Permalink
Fix pathological test config reader
Browse files Browse the repository at this point in the history
  • Loading branch information
colinodell committed Dec 7, 2024
1 parent d150f91 commit 69c4140
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tests/pathological/convert.php
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 69c4140

Please sign in to comment.