Skip to content

Commit 0b2c465

Browse files
committed
doctrine
1 parent e8b5b67 commit 0b2c465

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Hydra/State/JsonStreamerProvider.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,12 @@ public function provide(Operation $operation, array $uriVariables = [], array $c
4242
$data = $this->jsonStreamReader->read($request->getContent(true), Type::object($operation->getClass()));
4343
$context['request']->attributes->set('deserialized', true);
4444

45-
// if (\PHP_VERSION_ID > 80400) {
46-
// $refl = new \ReflectionClass($data);
47-
// if ($refl->isUninitializedLazyObject($data)) {
48-
// $refl->initializeLazyObject($data);
49-
// }
50-
// }
45+
if (\PHP_VERSION_ID > 80400) {
46+
$refl = new \ReflectionClass($data);
47+
if ($refl->isUninitializedLazyObject($data)) {
48+
$refl->initializeLazyObject($data);
49+
}
50+
}
5151

5252
return $data;
5353
}

0 commit comments

Comments
 (0)