1
0
Fork 0
mirror of synced 2024-09-30 09:18:14 +13:00

add null safety to usage worker

This commit is contained in:
Torsten Dittmann 2021-03-25 16:58:11 +01:00
parent ccf151c36b
commit 9cdb7f73a2

View file

@ -29,13 +29,13 @@ class UsageV1 extends Worker
$projectId = $this->args['projectId'];
$storage = $this->args['storage'];
$networkRequestSize = $this->args['networkRequestSize'];
$networkResponseSize = $this->args['networkResponseSize'];
$storage = $this->args['storage'] ?? null;
$httpMethod = $this->args['httpMethod'];
$httpRequest = $this->args['httpRequest'];
$httpMethod = $this->args['httpMethod'] ?? null;
$httpRequest = $this->args['httpRequest'] ?? null;
$functionId = $this->args['functionId'] ?? null;
$functionExecution = $this->args['functionExecution'] ?? null;