8000 Review · symfony/symfony@f0d10f2 · GitHub
[go: up one dir, main page]

Skip to content

Commit f0d10f2

Browse files
committed
Review
1 parent ddecc52 commit f0d10f2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/Symfony/Bridge/Doctrine/CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ CHANGELOG
44
4.2.0
55
-----
66

7-
* deprecated injection `ClassMetadataFactory` in `DoctrineExtractor`,
8-
and instance of `EntityManagerInterface` must be injected instead
7+
* deprecated injecting `ClassMetadataFactory` in `DoctrineExtractor`,
8+
an instance of `EntityManagerInterface` should be injected instead
99

1010
4.1.0
1111
-----

src/Symfony/Bridge/Doctrine/PropertyInfo/DoctrineExtractor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ class DoctrineExtractor implements PropertyListExtractorInterface, PropertyTypeE
3232
private $classMetadataFactory;
3333

3434
/**
35-
* @param EntityManagerInterface|ClassMetadataFactory $entityManager
35+
* @param EntityManagerInterface $entityManager
3636
*/
3737
public function __construct($entityManager)
3838
{
3939
if ($entityManager instanceof EntityManagerInterface) {
4040
$this->entityManager = $entityManager;
4141
} else {
42-
@trigger_error(sprintf('Injecting an instance of "%s" in "%s" is deprecated since version 4.2 and will not be possible anymore in 5.0. Inject an instance of "%s" instead.', ClassMetadataFactory::class, __CLASS__, EntityManagerInterface::class), E_USER_DEPRECATED);
42+
@trigger_error(sprintf('Injecting an instance of "%s" in "%s" is deprecated since Symfony 4.2, inject an instance of "%s" instead.', ClassMetadataFactory::class, __CLASS__, EntityManagerInterface::class), E_USER_DEPRECATED);
4343
$this->classMetadataFactory = $entityManager;
4444
}
4545
}

0 commit comments

Comments
 (0)
0