Skip to content

Commit ffe88c1

Browse files
authored
Update Spreadsheet.php
An "ambiguity" reported by Version that stopped being ambiguous with Php 7.0. I am very close to dropping this check.
1 parent af5ff6b commit ffe88c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PhpSpreadsheet/Spreadsheet.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1125,7 +1125,7 @@ public function __clone()
11251125
$this->$key = [];
11261126
foreach ($currentCollection as $item) {
11271127
$clone = clone $item;
1128-
$this->$key[] = $clone;
1128+
$this->{$key}[] = $clone;
11291129
}
11301130

11311131
break;

0 commit comments

Comments
 (0)