Fix PHP 7.4 warnings #189

Cette révision appartient à :
Stéphane Goetz 2020-02-07 22:38:28 +01:00
Parent de78382bf5
révision f268f889a4
1 fichiers modifiés avec 2 ajouts et 2 suppressions

Voir le fichier

@ -15,7 +15,7 @@ class BaseConfig extends ArrayObject
foreach ($newValues as $key => $value) { foreach ($newValues as $key => $value) {
// If the key doesn't exist yet, // If the key doesn't exist yet,
// we can simply set it. // we can simply set it.
if (!array_key_exists($key, /** @scrutinizer ignore-type */ $this)) { if (!array_key_exists($key, (array) $this)) {
$this[$key] = $value; $this[$key] = $value;
continue; continue;
} }
@ -39,7 +39,7 @@ class BaseConfig extends ArrayObject
public function hasValue($key) public function hasValue($key)
{ {
return array_key_exists($key, /** @scrutinizer ignore-type */ $this); return array_key_exists($key, (array) $this);
} }
public function getValue($key) public function getValue($key)