Skip to content

Commit

Permalink
Override existing file, closes #20
Browse files Browse the repository at this point in the history
  • Loading branch information
g105b committed Jun 10, 2018
1 parent 11f0ac2 commit 6ab20d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/FileWriter.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function writeIni(string $filePath):void {
foreach($this->config->getSectionNames() as $sectionName) {
foreach($this->config->getSection($sectionName)
as $key => $value) {
$writer->add([
$writer->update([
$sectionName => [
$key => $value,
]
Expand Down

0 comments on commit 6ab20d5

Please sign in to comment.