We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 953a1ed + d51efd9 commit 61cf047Copy full SHA for 61cf047
lib/private/AppFramework/Utility/SimpleContainer.php
@@ -61,7 +61,7 @@ private function buildClass(ReflectionClass $class): object {
61
/* No constructor, return a instance directly */
62
return $class->newInstance();
63
}
64
- if (PHP_VERSION_ID >= 80400 && self::$useLazyObjects) {
+ if (PHP_VERSION_ID >= 80400 && self::$useLazyObjects && !$class->isInternal()) {
65
/* For PHP>=8.4, use a lazy ghost to delay constructor and dependency resolving */
66
/** @psalm-suppress UndefinedMethod */
67
return $class->newLazyGhost(function (object $object) use ($constructor): void {
0 commit comments