Skip to content

Commit 1ccd406

Browse files
authored
Allow doctrine/persistence 3.0 (#75)
* Allow doctrine/persistence 3.0 * Allow doctrine/persistence 3.0 in global composer.json
1 parent 54e7fc5 commit 1ccd406

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"box/spout": "^3.0",
1818
"doctrine/dbal": "^2.11",
1919
"doctrine/orm": "^2.8",
20-
"doctrine/persistence": "^2.0",
20+
"doctrine/persistence": "^2.0|^3.0",
2121
"league/flysystem": "^3.0",
2222
"psr/container": "^1.0",
2323
"psr/event-dispatcher": "^1.0",

src/batch-doctrine-orm/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"require": {
1414
"php": "^8.0",
1515
"doctrine/orm": "^2.8",
16-
"doctrine/persistence": "^2.0",
16+
"doctrine/persistence": "^2.0|^3.0",
1717
"yokai/batch": "^0.5.0"
1818
},
1919
"autoload": {

src/batch-doctrine-orm/src/EntityReader.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ final class EntityReader implements ItemReaderInterface
1616
{
1717
public function __construct(
1818
private ManagerRegistry $doctrine,
19+
/**
20+
* @var class-string
21+
*/
1922
private string $class,
2023
) {
2124
}

src/batch-doctrine-persistence/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
],
1313
"require": {
1414
"php": "^8.0",
15-
"doctrine/persistence": "^2.0",
15+
"doctrine/persistence": "^2.0|^3.0",
1616
"yokai/batch": "^0.5.0"
1717
},
1818
"autoload": {

0 commit comments

Comments
 (0)