Skip to content

Commit f065776

Browse files
committed
Restored doctrine/persistence 2.x as conditional dependency
1 parent bcfa73f commit f065776

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Doctrine/Admin/DataIndexerElementImpl.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ trait DataIndexerElementImpl
2424

2525
public function getDataIndexer(): DataIndexerInterface
2626
{
27-
return new DoctrineDataIndexer($this->registry, $this->getRepository()->getClassName());
27+
/** @var class-string<T> $className */
28+
$className = $this->getRepository()->getClassName();
29+
return new DoctrineDataIndexer($this->registry, $className);
2830
}
2931
}

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"require": {
2222
"php": "^7.4|^8.0",
2323
"doctrine/doctrine-bundle": "^2.10",
24-
"doctrine/persistence": "^3.0",
24+
"doctrine/persistence": "^2.0|^3.0",
2525
"doctrine/orm": "^2.8",
2626
"fsi/data": "^1.0.2",
2727
"fsi/translatable": "^1.0.2",

0 commit comments

Comments
 (0)