Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 04525d3

Browse files
committed
Fix CR issues
1 parent be39a09 commit 04525d3

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/Symfony/Component/VarExporter/LazyGhostTrait.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,4 +379,13 @@ public function __destruct()
379379
parent::__destruct();
380380
}
381381
}
382+
383+
private function setLazyObjectAsInitialized(bool $initialized): void
384+
{
385+
$state = $this->lazyObjectState ?? null;
386+
387+
if ($state && !\is_array($state->initializer)) {
388+
$state->status = $initialized ? LazyObjectState::STATUS_INITIALIZED_FULL : LazyObjectState::STATUS_UNINITIALIZED_FULL;
389+
}
390+
}
382391
}

0 commit comments

Comments
 (0)