Skip to content

Commit 325b61e

Browse files
authored
Merge pull request #1499 from greg0ire/persistence-4-compat
Add support for Persistence 4
2 parents 3117d0f + 148f3a3 commit 325b61e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"ext-pdo_sqlite": "*",
3939
"doctrine/coding-standard": "^12",
4040
"doctrine/orm": "^2.13 || ^3",
41-
"doctrine/persistence": "^2 || ^3",
41+
"doctrine/persistence": "^2 || ^3 || ^4",
4242
"doctrine/sql-formatter": "^1.0",
4343
"fig/log-test": "^1",
4444
"phpstan/phpstan": "^1.10",

tests/Stub/DoctrineRegistry.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function __construct(
3939
/**
4040
* {@inheritDoc}
4141
*/
42-
protected function getService($name)
42+
protected function getService($name): object
4343
{
4444
return $this->realEntityManagers[$name] ?? $this->connections[$name];
4545
}

0 commit comments

Comments
 (0)