Skip to content

Commit e67fa53

Browse files
authored
Merge pull request #12043 from beberlei/Bugfix-DisableNativeLazyLogicException
Only throw PHP 8.4 requirement exception when enabling native lazy objects.
2 parents dddcc50 + c04bfb7 commit e67fa53

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)