Skip to content

Commit d06cda4

Browse files
committed
fix: Switch lazy object to enabled by default on PHP 8.4
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
1 parent 6610af2 commit d06cda4

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

config/config.sample.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2748,7 +2748,7 @@
27482748
* Enable lazy objects feature from PHP 8.4 to be used in the Dependency Injection.
27492749
* Should improve performances by avoiding buiding unused objects.
27502750
*
2751-
* Defaults to false.
2751+
* Defaults to true.
27522752
*/
2753-
'enable_lazy_objects' => false,
2753+
'enable_lazy_objects' => true,
27542754
];

lib/base.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ public static function init(): void {
633633
}
634634

635635
// Enable lazy loading if activated
636-
\OC\AppFramework\Utility\SimpleContainer::$useLazyObjects = (bool)self::$config->getValue('enable_lazy_objects');
636+
\OC\AppFramework\Utility\SimpleContainer::$useLazyObjects = (bool)self::$config->getValue('enable_lazy_objects', true);
637637

638638
// setup the basic server
639639
self::$server = new \OC\Server(\OC::$WEBROOT, self::$config);

0 commit comments

Comments
 (0)