mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
Merge pull request #55375 from nextcloud/fix/do-not-use-lazy-with-internal
fix: Do not try to create lazy ghosts for PHP internal classes
This commit is contained in:
commit
61cf047d1b
1 changed files with 1 additions and 1 deletions
|
|
@ -61,7 +61,7 @@ class SimpleContainer implements ArrayAccess, ContainerInterface, IContainer {
|
|||
/* No constructor, return a instance directly */
|
||||
return $class->newInstance();
|
||||
}
|
||||
if (PHP_VERSION_ID >= 80400 && self::$useLazyObjects) {
|
||||
if (PHP_VERSION_ID >= 80400 && self::$useLazyObjects && !$class->isInternal()) {
|
||||
/* For PHP>=8.4, use a lazy ghost to delay constructor and dependency resolving */
|
||||
/** @psalm-suppress UndefinedMethod */
|
||||
return $class->newLazyGhost(function (object $object) use ($constructor): void {
|
||||
|
|
|
|||
Loading…
Reference in a new issue