From cb44c5fd8590b18fe095db00b3248f7410040ea4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 22 Feb 2021 20:02:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- System/Di/Container.php | 2 +- System/Snowflake.php | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/System/Di/Container.php b/System/Di/Container.php index 8eae70da..541fc713 100644 --- a/System/Di/Container.php +++ b/System/Di/Container.php @@ -125,7 +125,7 @@ class Container extends BaseObject if (!$reflect->isInstantiable()) { throw new Exception($reflect->getName() . ' con\'t instantiable'); } - var_dump($dependencies); + var_dump($class, $dependencies); if (empty($config)) { return $reflect->newInstanceArgs($dependencies ?? []); } diff --git a/System/Snowflake.php b/System/Snowflake.php index 69234c1f..db5964b2 100644 --- a/System/Snowflake.php +++ b/System/Snowflake.php @@ -203,9 +203,6 @@ class Snowflake public static function configure($object, $config): mixed { foreach ($config as $key => $value) { - if (!is_string($key)) { - var_dump(get_class($object), $config); - } if (!property_exists($object, $key)) { continue; }