Skip to content

Commit 1acb110

Browse files
committed
Use JSON_UNESCAPED_SLASHES for lint commands output
1 parent 0207549 commit 1acb110

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Command/YamlLintCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ private function displayJson(OutputInterface $output, $filesInfo)
156156
}
157157
});
158158

159-
$output->writeln(json_encode($filesInfo, defined('JSON_PRETTY_PRINT') ? JSON_PRETTY_PRINT : 0));
159+
$output->writeln(json_encode($filesInfo, defined('JSON_PRETTY_PRINT') ? JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES : 0));
160160

161161
return min($errors, 1);
162162
}

0 commit comments

Comments
 (0)