Skip to content

Commit 03fd8da

Browse files
authored
Merge pull request #857 from ergebnis/fix/format
Fix: Create `Format` from `Json`
2 parents 269f809 + 0fc6dda commit 03fd8da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Command/NormalizeCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ protected function execute(
222222
return 1;
223223
}
224224

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

227227
if (null !== $indent) {
228228
$format = $format->withIndent($indent);

0 commit comments

Comments
 (0)