Skip to content

Commit c04bfb7

Browse files
committed
Only throw PHP 8.4 requirement exception when enabling native lazy objects.
1 parent ee919d6 commit c04bfb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ public function isNativeLazyObjectsEnabled(): bool
602602

603603
public function enableNativeLazyObjects(bool $nativeLazyObjects): void
604604
{
605-
if (PHP_VERSION_ID < 80400) {
605+
if (PHP_VERSION_ID < 80400 && $nativeLazyObjects) {
606606
throw new LogicException('Lazy loading proxies require PHP 8.4 or higher.');
607607
}
608608

0 commit comments

Comments
 (0)