public function __destruct() { $state = $this->lazyObjectState ?? null; if (LazyObjectState::STATUS_UNINITIALIZED_FULL === $state?->status) { return; } if ((Registry::$parentMethods[self::class] ??= Registry::getParentMethods(self::class))['destruct']) { parent::__destruct(); } }