Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
alisaleem27 committed Jul 1, 2024
1 parent 03f116c commit c0f5e52
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/BaseSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
Expand Down

0 comments on commit c0f5e52

Please sign in to comment.