Skip to content

Commit 4cc5553

Browse files
Remove deprecated calls to deprecated methods of SplObjectStorage
1 parent 1e742d5 commit 4cc5553

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
@@ -86,7 +86,7 @@ public static function getHydrator($class)
8686
if ("\0" === $name) {
8787
foreach ($values as $i => $v) {
8888
for ($j = 0; $j < \count($v); ++$j) {
89-
$objects[$i]->attach($v[$j], $v[++$j]);
89+
$objects[$i][$v[$j]] = $v[++$j];
9090
}
9191
}
9292
continue;
@@ -194,7 +194,7 @@ public static function getSimpleHydrator($class)
194194
continue;
195195
}
196196
for ($i = 0; $i < \count($value); ++$i) {
197-
$object->attach($value[$i], $value[++$i]);
197+
$object[$value[$i]] = $value[++$i];
198198
}
199199
}
200200
};

0 commit comments

Comments
 (0)