mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
Simplified Entity
This commit is contained in:
parent
b33be80be3
commit
187c6700b1
@ -178,15 +178,7 @@ abstract class Entity
|
||||
&& $this->enterprise !== null
|
||||
&& method_exists($this->enterprise, $methodName) === true
|
||||
) {
|
||||
$obj = $this->enterprise;
|
||||
$callback = function (...$parameters) use ($obj, $methodName) {
|
||||
return $obj->$methodName(...$parameters);
|
||||
};
|
||||
|
||||
return call_user_func_array(
|
||||
$callback,
|
||||
$params
|
||||
);
|
||||
return $this->enterprise->$methodName(...$params);
|
||||
}
|
||||
|
||||
if (method_exists($this, $methodName) === false) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user