8000 [DoctrineBridge] Fix compat with DI >= 6.4 · symfony/symfony@a319e94 · GitHub
[go: up one dir, main page]

Skip to content

Commit a319e94

Browse files
[DoctrineBridge] Fix compat with DI >= 6.4
1 parent 1b18a07 commit a319e94

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Symfony/Bridge/Doctrine/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)
0