Skip to content

Commit

Permalink
fixes #877 composer update is giving an error
Browse files Browse the repository at this point in the history
  • Loading branch information
CountZero1981 committed Feb 22, 2022
1 parent dd7dafe commit 30ebebb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Configurator/DockerComposeConfigurator.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ private function configureDockerCompose(Recipe $recipe, array $config, bool $upd
}

// Keep end in memory (check break line on previous line)
$endAt[$node] = '' !== trim($lines[$i - 1]) ? $i : $i - 1;
$endAt[$node] = $i && '' !== trim($lines[$i - 1]) ? $i : $i - 1;
$node = $matches[1];
if (!isset($nodesLines[$node])) {
$nodesLines[$node] = [];
Expand Down

0 comments on commit 30ebebb

Please sign in to comment.