diff --git a/System/Di/Container.php b/System/Di/Container.php index fecf6d97..b6a1ab5f 100644 --- a/System/Di/Container.php +++ b/System/Di/Container.php @@ -164,7 +164,7 @@ class Container extends BaseObject * @param $dependencies * @return mixed */ - private function newInstance($reflect, $dependencies) + private function newInstance($reflect, $dependencies): mixed { if (!empty($dependencies)) { return $reflect->newInstanceArgs($dependencies); diff --git a/System/Snowflake.php b/System/Snowflake.php index bc957eaa..af377ba6 100644 --- a/System/Snowflake.php +++ b/System/Snowflake.php @@ -307,6 +307,9 @@ class Snowflake public static function configure($object, $config): mixed { foreach ($config as $key => $value) { + if (is_numeric($key)) { + continue; + } if (!property_exists($object, $key)) { continue; }