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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy