Skip to content

Commit 2c2f0c8

Browse files
[DoctrineBridge] Fix compat with DI >= 6.4
1 parent 6f26ed3 commit 2c2f0c8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ManagerRegistry.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ function (&$wrappedInstance, LazyLoadingInterface $manager) use ($name) {
7272
}
7373
if (isset($this->fileMap[$name])) {
7474
$wrappedInstance = $this->load($this->fileMap[$name], false);
75+
} elseif ((new \ReflectionMethod($this, $this->methodMap[$name]))->isStatic()) {
76+
$wrappedInstance = $this->{$this->methodMap[$name]}($this, false);
7577
} else {
7678
$wrappedInstance = $this->{$this->methodMap[$name]}(false);
7779
}

0 commit comments

Comments
 (0)