When comparing config values, use strict string comparison

pull/10191/head
Matthew Exon 2021-05-01 21:46:21 +02:00
rodzic 4858993024
commit 18762c8e6e
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -128,7 +128,7 @@ HELP;
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.");
}