fix: Switch lazy object to enabled by default on PHP 8.4

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
pull/52538/head
Côme Chilliet 2025-05-16 17:07:53 +07:00
parent 2eed6d3a89
commit 78ff8e233f
No known key found for this signature in database
GPG Key ID: A3E2F658B28C760A
2 changed files with 3 additions and 3 deletions

@ -2748,7 +2748,7 @@ $CONFIG = [
* Enable lazy objects feature from PHP 8.4 to be used in the Dependency Injection.
* Should improve performances by avoiding buiding unused objects.
*
* Defaults to false.
* Defaults to true.
*/
'enable_lazy_objects' => false,
'enable_lazy_objects' => true,
];

@ -619,7 +619,7 @@ class OC {
$loaderEnd = microtime(true);
// Enable lazy loading if activated
\OC\AppFramework\Utility\SimpleContainer::$useLazyObjects = (bool)self::$config->getValue('enable_lazy_objects');
\OC\AppFramework\Utility\SimpleContainer::$useLazyObjects = (bool)self::$config->getValue('enable_lazy_objects', true);
// setup the basic server
self::$server = new \OC\Server(\OC::$WEBROOT, self::$config);