We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e404e40 commit 70780f3Copy full SHA for 70780f3
Test/DoctrineTestHelper.php
@@ -24,6 +24,7 @@
24
use Doctrine\Persistence\Mapping\Driver\MappingDriverChain;
25
use Doctrine\Persistence\Mapping\Driver\SymfonyFileLocator;
26
use PHPUnit\Framework\TestCase;
27
+use Symfony\Component\VarExporter\LazyGhostTrait;
28
29
/**
30
* Provides utility functions needed in tests.
@@ -90,6 +91,10 @@ public static function createTestConfiguration()
90
91
$config->setSchemaManagerFactory(new DefaultSchemaManagerFactory());
92
}
93
94
+ if (\PHP_VERSION_ID >= 80100 && method_exists(Configuration::class, 'setLazyGhostObjectEnabled') && trait_exists(LazyGhostTrait::class)) {
95
+ $config->setLazyGhostObjectEnabled(true);
96
+ }
97
+
98
return $config;
99
100
0 commit comments