From 187c6700b1e77130f45a3904a3d8bd31ba7f2e34 Mon Sep 17 00:00:00 2001 From: fbsanchez Date: Thu, 16 Sep 2021 21:54:12 +0200 Subject: [PATCH] Simplified Entity --- pandora_console/include/lib/Entity.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/pandora_console/include/lib/Entity.php b/pandora_console/include/lib/Entity.php index c22076505d..3304c9e805 100644 --- a/pandora_console/include/lib/Entity.php +++ b/pandora_console/include/lib/Entity.php @@ -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) {