mirror of
https://github.com/espocrm/espocrm.git
synced 2026-06-28 06:56:05 +00:00
fix phpstan ext
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user