Skip to content

Commit

Permalink
fix: bug when saving config on home dir
Browse files Browse the repository at this point in the history
  • Loading branch information
praswicaksono committed Nov 17, 2024
1 parent d07bab5 commit f1d7a4a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/Command/ServiceDelCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int

private function deleteService(string $namespace, string $name): \Generator
{
$apps = $this->config->get("{$namespace}.apps");
$apps = $this->config->get("{$namespace}.apps") ?? [];

$fullServiceName = "{$namespace}-{$name}";

Expand Down
1 change: 0 additions & 1 deletion src/Component/Config/Json.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ public static function fromFile(string $path): self
if (false === $json) {
$json = '{}';
}
$path = '/.mager/config.json';
}

$object->config = \dot(json_decode($json, true));
Expand Down

0 comments on commit f1d7a4a

Please sign in to comment.