diff --git a/src/Composer/Json/JsonManipulator.php b/src/Composer/Json/JsonManipulator.php index f929732fe..cdd22c817 100644 --- a/src/Composer/Json/JsonManipulator.php +++ b/src/Composer/Json/JsonManipulator.php @@ -417,7 +417,7 @@ class JsonManipulator { $decoded = JsonFile::parseJson($this->contents); - if (!isset($decoded[$key])) { + if (!array_key_exists($key, $decoded)) { return true; }