Skip to content

Commit

Permalink
Local neon task: Render value always as scalar string.
Browse files Browse the repository at this point in the history
  • Loading branch information
janbarasek authored Jul 14, 2021
1 parent 6355245 commit 78ee302
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/InteractiveComposer/Task/ConfigLocalNeonTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,7 @@ public function run(): bool
echo 'Auto detected environment settings: ' . "\n";
foreach ($environment as $key => $value) {
echo ' ' . ConsoleHelpers::terminalRenderLabel((string) $key) . ': ';
if (is_scalar($value)) {
echo $value;
} else {
echo json_encode($value, JSON_PRETTY_PRINT);
}
echo "\n";
echo json_encode($value, JSON_PRETTY_PRINT) . "\n";
}
echo "\n\n";
}
Expand Down

0 comments on commit 78ee302

Please sign in to comment.