Skip to content

Commit 625ae53

Browse files
committed
Merge branch '5.2' into 5.3
2 parents befe7c6 + a579736 commit 625ae53

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
@@ -630,7 +630,7 @@ private function writeCollection(array $zval, string $property, iterable $collec
630630

631631
private function getWriteInfo(string $class, string $property, $value): PropertyWriteInfo
632632
{
633-
$useAdderAndRemover = \is_array($value) || $value instanceof \Traversable;
633+
$useAdderAndRemover = is_iterable($value);
634634
$key = str_replace('\\', '.', $class).'..'.$property.'..'.(int) $useAdderAndRemover;
635635

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

0 commit comments

Comments
 (0)