Skip to content

Commit

Permalink
fix: do not override config properties with null values
Browse files Browse the repository at this point in the history
  • Loading branch information
vazaha-nl committed Nov 17, 2021
1 parent 576262b commit 6b87d89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class Config
public function __construct(array $config = [])
{
foreach ($config as $name => $value) {
if (isset($this->{$name})) {
if (isset($this->{$name}) && isset($value)) {
$this->{$name} = $value;
}
}
Expand Down

0 comments on commit 6b87d89

Please sign in to comment.