Skip to content

Commit 72cacd5

Browse files
committed
Ensure list
1 parent ff9fc3f commit 72cacd5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Services/ChainService.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public function __construct(
2222
if ($services === []) {
2323
throw new ValueError('List of services must be non-empty');
2424
}
25-
$this->services = $services;
25+
$this->services = array_values($services);
2626
}
2727

2828
#[Override]

0 commit comments

Comments
 (0)