From 18762c8e6e88e2e3089cb5b30d6f2c39b6d42a12 Mon Sep 17 00:00:00 2001 From: Matthew Exon Date: Sat, 1 May 2021 21:46:21 +0200 Subject: [PATCH] When comparing config values, use strict string comparison --- src/Console/Config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Console/Config.php b/src/Console/Config.php index a97574c976..3c775d4329 100644 --- a/src/Console/Config.php +++ b/src/Console/Config.php @@ -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."); }