From 4281c24c69f9332f250eeae27b29177482266255 Mon Sep 17 00:00:00 2001 From: Pavol Kirschbaum Date: Wed, 26 Apr 2017 09:09:09 +0200 Subject: [PATCH] Do not call magic method explicitly --- src/AbstractFactory.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/AbstractFactory.php b/src/AbstractFactory.php index 82083ed..777622d 100644 --- a/src/AbstractFactory.php +++ b/src/AbstractFactory.php @@ -54,7 +54,7 @@ public static function __callStatic(string $name, array $arguments) )); } - return (new static($name))->__invoke($arguments[0]); + return (new static($name))($arguments[0]); } /** @@ -116,6 +116,6 @@ protected function retrieveDependency( return $container->get($containerKey); } - return (new $factoryClassName($configKey))->__invoke($container); + return (new $factoryClassName($configKey))($container); } }