Skip to content

Commit 2c309a3

Browse files
Merge branch '7.3' into 7.4
* 7.3: Fix remaining SplObjectStorage deprecation Remove calls to no-op functions, deprecated in PHP 8.5 Remove deprecated calls to deprecated methods of SplObjectStorage [Messenger] Show package installation hint also for amqps [TypeInfo] Fix converting list to string
2 parents a827763 + 87a7ec8 commit 2c309a3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Internal/Hydrator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public static function getHydrator($class)
8080
if ("\0" === $name) {
8181
foreach ($values as $i => $v) {
8282
for ($j = 0; $j < \count($v); ++$j) {
83-
$objects[$i]->attach($v[$j], $v[++$j]);
83+
$objects[$i][$v[$j]] = $v[++$j];
8484
}
8585
}
8686
continue;
@@ -188,7 +188,7 @@ public static function getSimpleHydrator($class)
188188
continue;
189189
}
190190
for ($i = 0; $i < \count($value); ++$i) {
191-
$object->attach($value[$i], $value[++$i]);
191+
$object[$value[$i]] = $value[++$i];
192192
}
193193
}
194194
};

0 commit comments

Comments
 (0)