Skip to content

Commit 09b0ae2

Browse files
committed
[minor] fix sca
1 parent 2b2d2e7 commit 09b0ae2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/Test/LazyManagerRegistry.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,13 @@ public function resetManager($name = null): ObjectManager
6262

6363
public function getAliasNamespace($alias): string
6464
{
65-
return $this->inner()->getAliasNamespace($alias);
65+
$inner = $this->inner();
66+
67+
if (\method_exists($inner, 'getAliasNamespace')) {
68+
return $inner->getAliasNamespace($alias);
69+
}
70+
71+
throw new \BadMethodCallException('Method removed in doctrine/persistence v3.');
6672
}
6773

6874
public function getManagerNames(): array

0 commit comments

Comments
 (0)