Skip to content

Commit

Permalink
Merge pull request #857 from ergebnis/fix/format
Browse files Browse the repository at this point in the history
Fix: Create `Format` from `Json`
  • Loading branch information
localheinz committed Dec 29, 2021
2 parents 269f809 + 0fc6dda commit 03fd8da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Command/NormalizeCommand.php
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 03fd8da

Please sign in to comment.