null safety
This commit is contained in:
parent
c0d05132df
commit
246d9b94b7
1 changed files with 29 additions and 29 deletions
|
@ -334,8 +334,8 @@ App::shutdown()
|
|||
$usage->setParam($metric, 1);
|
||||
foreach ($usageParams as $param => $value) {
|
||||
$parts = explode('.', $value);
|
||||
$namespace = $parts[0];
|
||||
$key = $parts[1];
|
||||
$namespace = $parts[0] ?? '';
|
||||
$key = $parts[1] ?? '';
|
||||
|
||||
$params = [];
|
||||
switch ($namespace) {
|
||||
|
|
Loading…
Reference in a new issue