1
0
Fork 0
mirror of synced 2024-10-03 10:46:27 +13:00

null safety

This commit is contained in:
Damodar Lohani 2022-08-15 13:27:02 +05:45 committed by GitHub
parent c0d05132df
commit 246d9b94b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {