Skip to content

Commit

Permalink
Local neon task: Empty configuration haystack means ignore configurat…
Browse files Browse the repository at this point in the history
…ion.
  • Loading branch information
janbarasek authored Aug 1, 2021
1 parent 4750572 commit 2a4edd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/InteractiveComposer/Task/ConfigLocalNeonTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public function getName(): string

private function writeConfiguration(string $path, mixed $haystack): bool
{
if (is_array($haystack)) {
if (is_array($haystack) && $haystack !== []) {
$haystack = trim(Neon::encode(
[
'baraja.database' => [
Expand Down

0 comments on commit 2a4edd6

Please sign in to comment.