Skip to content

Commit 78ff8e2

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 2eed6d3 commit 78ff8e2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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
@@ -619,7 +619,7 @@ public static function init(): void {
619619
$loaderEnd = microtime(true);
620620

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

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

0 commit comments

Comments
 (0)