Skip to content

Commit 0704e48

Browse files
committed
Correct 'member' handling in Group
1 parent 1d7ca1e commit 0704e48

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/Group.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ public function asVersion($version) {
4646
}
4747

4848
public function setMember($value) {
49-
foreach ($value as $k) {
50-
if (! $value[$k] instanceof Agent) {
51-
$value[$k] = new Agent($value[$k]);
49+
foreach ($value as $k => $v) {
50+
if (! $v instanceof Agent) {
51+
$value[$k] = new Agent($v);
5252
}
5353
}
5454

0 commit comments

Comments
 (0)