Fix PHP 7.4 warnings #189
Dieser Commit ist enthalten in:
Ursprung
de78382bf5
Commit
f268f889a4
@ -15,7 +15,7 @@ class BaseConfig extends ArrayObject
|
||||
foreach ($newValues as $key => $value) {
|
||||
// If the key doesn't exist yet,
|
||||
// we can simply set it.
|
||||
if (!array_key_exists($key, /** @scrutinizer ignore-type */ $this)) {
|
||||
if (!array_key_exists($key, (array) $this)) {
|
||||
$this[$key] = $value;
|
||||
continue;
|
||||
}
|
||||
@ -39,7 +39,7 @@ class BaseConfig extends ArrayObject
|
||||
|
||||
public function hasValue($key)
|
||||
{
|
||||
return array_key_exists($key, /** @scrutinizer ignore-type */ $this);
|
||||
return array_key_exists($key, (array) $this);
|
||||
}
|
||||
|
||||
public function getValue($key)
|
||||
|
Laden…
x
In neuem Issue referenzieren
Einen Benutzer sperren