fix phpstan ext

This commit is contained in:
Yuri Kuznetsov
2022-01-28 16:22:20 +02:00
parent f596d12e02
commit 434b4f880f

View File

@@ -60,6 +60,7 @@ class EntityManagerReturnType implements DynamicMethodReturnTypeExtension
private $supportedMethodNameList = [
'getEntity',
'getNewEntity',
'getEntityById',
'createEntity',
'getRDBRepository',
'getRepository',
@@ -88,7 +89,7 @@ class EntityManagerReturnType implements DynamicMethodReturnTypeExtension
$methodName = $methodReflection->getName();
if ($methodName === 'getEntity') {
if ($methodName === 'getEntity' || $methodName === 'getEntityById') {
return $this->getGetEntity($methodReflection, $methodCall, $scope);
}