Skip to content

Commit e85071f

Browse files
committed
Make json pretty print work again
1 parent 7a53684 commit e85071f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

composer-lock-diff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ $prod = diff('packages', $opts['from'], $opts['to'], $opts['path']);
77
$dev = diff('packages-dev', $opts['from'], $opts['to'], $opts['path']);
88

99
if ($opts['json']) {
10-
$opts = ($opt['pretty']) ? JSON_PRETTY_PRINT : 0;
11-
print json_encode(array('changes' => $prod, 'changes-dev' => $dev), $opts);
10+
$json_opts = ($opts['pretty']) ? JSON_PRETTY_PRINT : 0;
11+
print json_encode(array('changes' => $prod, 'changes-dev' => $dev), $json_opts);
1212
return;
1313
}
1414

0 commit comments

Comments
 (0)