Skip to content

Commit

Permalink
Fix: Create Format from Json
Browse files Browse the repository at this point in the history
  • Loading branch information
localheinz committed Dec 29, 2021
1 parent 269f809 commit 0fc6dda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Command/NormalizeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ protected function execute(
return 1;
}

$format = $json->format();
$format = Normalizer\Format\Format::fromJson($json);

if (null !== $indent) {
$format = $format->withIndent($indent);
Expand Down

0 comments on commit 0fc6dda

Please sign in to comment.