From c0f5e52ef68156257427bde452b0614c8f3ae1ac Mon Sep 17 00:00:00 2001 From: Ali Saleem Date: Mon, 1 Jul 2024 03:37:28 +0100 Subject: [PATCH] - --- src/BaseSettings.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/BaseSettings.php b/src/BaseSettings.php index 7c6240b..9316645 100644 --- a/src/BaseSettings.php +++ b/src/BaseSettings.php @@ -29,10 +29,11 @@ public function __construct(protected array $config) }) ->filter(fn (ReflectionProperty $property) => $this->store->has($property->getName())) ->each(function (ReflectionProperty $property) { - $value = $this->hydrate( - $this->store->get($property->getName()), - $property->getType()->getName() - ); + $rawValue = $this->store->get($property->getName()); + if ($this->logging) { + logger()->info("[Settings] read {$property->getName()}: {$rawValue}"); + } + $value = $this->hydrate($rawValue, $property->getType()->getName()); $property->setValue($this, $value); $this->original[$property->getName()] = $value; });