Skip to content

Commit 3801a46

Browse files
committed
fix: getAlias is causing infinity loop
1 parent aa1235b commit 3801a46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Service/AliasService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ public function removeAlias(string $name): bool
355355
private function addAlias(string $name, string $index, array $env = [], bool $managed = false): void
356356
{
357357
if ($this->hasAlias($name)) {
358-
$alias = $this->getAlias($name);
358+
$alias = $this->aliases[$name];
359359
$alias['indexes'][$index] = $this->getIndex($index);
360360
$alias['countIndexes'] = \count($alias['indexes']);
361361

0 commit comments

Comments
 (0)