Pārlūkot izejas kodu

Fix: Use array_key_exists() instead of isset()

Andreas Möller 7 gadi atpakaļ
vecāks
revīzija
de07f588c1
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      src/Composer/Json/JsonManipulator.php

+ 1 - 1
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;
         }