From e3496efe5d7d365acf776a9cb92dbe813df5d2d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 22 Feb 2021 20:26:13 +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 | 1 - System/Snowflake.php | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/System/Di/Container.php b/System/Di/Container.php index 0a7f00d3..d78ba607 100644 --- a/System/Di/Container.php +++ b/System/Di/Container.php @@ -129,7 +129,6 @@ class Container extends BaseObject return $reflect->newInstanceArgs($dependencies ?? []); } if (!empty($dependencies) && $reflect->implementsInterface('Snowflake\Abstracts\Configure')) { - var_dump($dependencies); $dependencies[count($dependencies) - 1] = $config; return $reflect->newInstanceArgs($dependencies); } diff --git a/System/Snowflake.php b/System/Snowflake.php index db5964b2..c84f8064 100644 --- a/System/Snowflake.php +++ b/System/Snowflake.php @@ -203,6 +203,9 @@ class Snowflake public static function configure($object, $config): mixed { foreach ($config as $key => $value) { + if (is_integer($key)) { + var_dump($value); + } if (!property_exists($object, $key)) { continue; }