Skip to content
This repository has been archived by the owner on Sep 19, 2023. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:justcoded/yii2-settings
Browse files Browse the repository at this point in the history
  • Loading branch information
aprokopenko committed Jul 13, 2019
2 parents cf0b511 + 2f621e5 commit 8096fed
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/components/DbSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,14 @@ protected function setValue($section, $key, $value)
}
return $this->insertValue($section, $key, $value);
}

/**
* {@inheritDoc}
*
* @param mixed $defaultValue Default value if $key not exists
*/
public function get($section, $key, $defaultValue = null)
{
return parent::get($section, $key) ?? $defaultValue;
}
}

0 comments on commit 8096fed

Please sign in to comment.