diff --git a/testing/database.rst b/testing/database.rst index 3f7ce3704f8..0f19ee89b41 100644 --- a/testing/database.rst +++ b/testing/database.rst @@ -99,7 +99,7 @@ so, get the entity manager via the service container as follows:: class ProductRepositoryTest extends KernelTestCase { - private EntityManager $entityManager; + private ?EntityManager $entityManager; protected function setUp(): void {