Skip to content

Commit 9fc4beb

Browse files
Merge branch '7.0' into 7.1
* 7.0: Revert "bug #57520 [SecurityBundle] Remove unused memory users’ `name` attribute from the XSD (MatTheCat)" [HttpKernel] Enable optional cache-warmers when cache-dir != build-dir [Filesystem] Fix Filesystem::remove() on Windows [DoctrineBridge] Fix compat with DI >= 6.4 [String] Fix *String::snake methods
2 parents 9cbab67 + 9359ce4 commit 9fc4beb

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
@@ -58,6 +58,8 @@ function (&$wrappedInstance, LazyLoadingInterface $manager) use ($name) {
5858
}
5959
if (isset($this->fileMap[$name])) {
6060
$wrappedInstance = $this->load($this->fileMap[$name], false);
61+
} elseif ((new \ReflectionMethod($this, $this->methodMap[$name]))->isStatic()) {
62+
$wrappedInstance = $this->{$this->methodMap[$name]}($this, false);
6163
} else {
6264
$wrappedInstance = $this->{$this->methodMap[$name]}(false);
6365
}

0 commit comments

Comments
 (0)