Skip to content

Commit a579736

Browse files
committed
Merge branch '4.4' into 5.2
2 parents 16206cf + 236c5a0 commit a579736

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

PropertyAccessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ private function writeCollection(array $zval, string $property, iterable $collec
593593

594594
private function getWriteInfo(string $class, string $property, $value): PropertyWriteInfo
595595
{
596-
$useAdderAndRemover = \is_array($value) || $value instanceof \Traversable;
596+
$useAdderAndRemover = is_iterable($value);
597597
$key = str_replace('\\', '.', $class).'..'.$property.'..'.(int) $useAdderAndRemover;
598598

599599
if (isset($this->writePropertyCache[$key])) {

0 commit comments

Comments
 (0)