mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 08:44:11 +02:00
JsonException: simplify, we have newer PHP
This commit is contained in:
parent
ccd92674a6
commit
f0524f4d46
@ -11,9 +11,7 @@ class JsonException extends IcingaException
|
|||||||
if ($msg === null) {
|
if ($msg === null) {
|
||||||
return new static(static::getJsonErrorMessage(\json_last_error()));
|
return new static(static::getJsonErrorMessage(\json_last_error()));
|
||||||
} else {
|
} else {
|
||||||
$args = \func_get_args();
|
return new static($msg . ': ' . static::getJsonErrorMessage(\json_last_error()));
|
||||||
$args[0] = $msg . ': ' . static::getJsonErrorMessage(\json_last_error());
|
|
||||||
return \call_user_func_array('static::__construct', $args);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user