When comparing config values, use strict string comparison
This commit is contained in:
parent
4858993024
commit
18762c8e6e
1 changed files with 1 additions and 1 deletions
|
@ -128,7 +128,7 @@ HELP;
|
||||||
throw new RuntimeException("$cat.$key is an array and can't be set using this command.");
|
throw new RuntimeException("$cat.$key is an array and can't be set using this command.");
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->config->get($cat, $key) == $value) {
|
if ($this->config->get($cat, $key) === $value) {
|
||||||
throw new RuntimeException("$cat.$key already set to $value.");
|
throw new RuntimeException("$cat.$key already set to $value.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue