Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Only throw PHP 8.4 requirement exception when enabling native lazy ob…
…jects.
  • Loading branch information
beberlei committed Jun 30, 2025
commit c04bfb78b7aa672c74bd0d03ebbc5b9a19a25422
2 changes: 1 addition & 1 deletion src/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.');
}

Expand Down