Fix: Use array_key_exists() instead of isset()
parent
79828f7543
commit
de07f588c1
|
@ -417,7 +417,7 @@ class JsonManipulator
|
||||||
{
|
{
|
||||||
$decoded = JsonFile::parseJson($this->contents);
|
$decoded = JsonFile::parseJson($this->contents);
|
||||||
|
|
||||||
if (!isset($decoded[$key])) {
|
if (!array_key_exists($key, $decoded)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue