Skip to content

Commit d494898

Browse files
Merge pull request #55399 from nextcloud/backport/55375/stable32
2 parents 7ccdda6 + 2f3e2c0 commit d494898

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/private/AppFramework/Utility/SimpleContainer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ private function buildClass(ReflectionClass $class): object {
6161
/* No constructor, return a instance directly */
6262
return $class->newInstance();
6363
}
64-
if (PHP_VERSION_ID >= 80400 && self::$useLazyObjects) {
64+
if (PHP_VERSION_ID >= 80400 && self::$useLazyObjects && !$class->isInternal()) {
6565
/* For PHP>=8.4, use a lazy ghost to delay constructor and dependency resolving */
6666
/** @psalm-suppress UndefinedMethod */
6767
return $class->newLazyGhost(function (object $object) use ($constructor): void {

0 commit comments

Comments
 (0)