Skip to content

Commit 08a2346

Browse files
committed
Use array_values to ensure proper indexing during project_hash calculation
1 parent e4a5416 commit 08a2346

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Command/MainCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ protected function execute(Input $input, Output $output): int
9494
if (!empty($this->deployer->config['repository'])) {
9595
$hash = sha1($this->deployer->config['repository']);
9696
} else {
97-
$hosts = $this->deployer->hosts->all();
97+
$hosts = array_values($this->deployer->hosts->all());
9898
if (count($hosts) > 0) {
9999
$hash = sha1($hosts[0]->getHostname());
100100
}

0 commit comments

Comments
 (0)