Skip to content

Commit

Permalink
Fix the argument type strict
Browse files Browse the repository at this point in the history
Signed-off-by: huangzhhui <[email protected]>
  • Loading branch information
huangzhhui committed Jun 26, 2022
1 parent b560ab6 commit d822485
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public function setConfigContent(array $content): void
file_put_contents($this->configFile, json_encode($content, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE));
}

public function updateConfig(string $key, string $value): void
public function updateConfig(string $key, ?string $value): void
{
$config = $this->getConfigContent();
if (in_array($value, ['bool', 'false'])) {
Expand Down

0 comments on commit d822485

Please sign in to comment.