Skip to content

Commit 0300328

Browse files
committed
(test) Enable native lazy objects on PHP 8.4 in base test cases
1 parent 266820d commit 0300328

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

tests/Integration/MartinGeorgiev/TestCase.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,9 @@ protected function setUp(): void
7777
$configuration->setProxyDir(self::FIXTURES_DIRECTORY.'/Proxies');
7878
$configuration->setProxyNamespace(self::FIXTURE_NAMESPACE.'\Proxy');
7979
$configuration->setAutoGenerateProxyClasses(true);
80+
if (\PHP_VERSION_ID >= 80400) {
81+
$configuration->enableNativeLazyObjects(true);
82+
}
8083
$this->setConfigurationCache($configuration);
8184

8285
// Register the entity namespace for DQL short aliases

tests/Unit/MartinGeorgiev/Doctrine/ORM/Query/AST/Functions/TestCase.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ protected function setUp(): void
2828
$configuration->setProxyDir(static::FIXTURES_DIRECTORY.'/Proxies');
2929
$configuration->setProxyNamespace('Fixtures\MartinGeorgiev\Doctrine\Entity\Proxy');
3030
$configuration->setAutoGenerateProxyClasses(true);
31+
if (\PHP_VERSION_ID >= 80400) {
32+
$configuration->enableNativeLazyObjects(true);
33+
}
3134
$this->setConfigurationCache($configuration);
3235

3336
$this->configuration = $configuration;

0 commit comments

Comments
 (0)