diff --git a/src/Configuration.php b/src/Configuration.php index ca22d9bb760..9b0924fbaa5 100644 --- a/src/Configuration.php +++ b/src/Configuration.php @@ -602,7 +602,7 @@ public function isNativeLazyObjectsEnabled(): bool public function enableNativeLazyObjects(bool $nativeLazyObjects): void { - if (PHP_VERSION_ID < 80400) { + if (PHP_VERSION_ID < 80400 && $nativeLazyObjects) { throw new LogicException('Lazy loading proxies require PHP 8.4 or higher.'); }