We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bcfa73f commit f065776Copy full SHA for f065776
Doctrine/Admin/DataIndexerElementImpl.php
@@ -24,6 +24,8 @@ trait DataIndexerElementImpl
24
25
public function getDataIndexer(): DataIndexerInterface
26
{
27
- return new DoctrineDataIndexer($this->registry, $this->getRepository()->getClassName());
+ /** @var class-string<T> $className */
28
+ $className = $this->getRepository()->getClassName();
29
+ return new DoctrineDataIndexer($this->registry, $className);
30
}
31
composer.json
@@ -21,7 +21,7 @@
21
"require": {
22
"php": "^7.4|^8.0",
23
"doctrine/doctrine-bundle": "^2.10",
- "doctrine/persistence": "^3.0",
+ "doctrine/persistence": "^2.0|^3.0",
"doctrine/orm": "^2.8",
"fsi/data": "^1.0.2",
"fsi/translatable": "^1.0.2",
0 commit comments