Skip to content

Commit 429d895

Browse files
Merge branch '4.3' into 4.4
* 4.3: Add missing annotation
2 parents 86b6fc8 + dee045a commit 429d895

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Test/DoctrineTestHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public static function createTestConfigurationWithXmlLoader()
7979
$symfonyFileLocator = class_exists(SymfonyFileLocator::class) ? SymfonyFileLocator::class : LegacySymfonyFileLocator::class;
8080
$driverChain = class_exists(MappingDriverChain::class) ? MappingDriverChain::class : LegacyMappingDriverChain::class;
8181

82-
$driverChain = new MappingDriverChain();
82+
$driverChain = new $driverChain();
8383
$driverChain->addDriver(
8484
new XmlDriver(
8585
new $symfonyFileLocator(

Test/TestRepositoryFactory.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,10 @@ final class TestRepositoryFactory implements RepositoryFactory
2929

3030
/**
3131
* {@inheritdoc}
32+
*
33+
* @return ObjectRepository|LegacyObjectRepository
3234
*/
33-
public function getRepository(EntityManagerInterface $entityManager, $entityName): ObjectRepository
35+
public function getRepository(EntityManagerInterface $entityManager, $entityName)
3436
{
3537
$repositoryHash = $this->getRepositoryHash($entityManager, $entityName);
3638

0 commit comments

Comments
 (0)