Commit ffdf997c authored by Oliver Bartsch's avatar Oliver Bartsch

[TASK] Return empty array instead of null in jsonSerialize

parent 326a3f59
Pipeline #10060 passed with stages
in 6 minutes and 22 seconds
......@@ -39,7 +39,7 @@ class Extension implements \JsonSerializable
'downloads' => $this->downloads,
'version_count' => $this->versionCount,
'meta' => $this->meta,
'current_version' => $this->currentVersion
'current_version' => $this->currentVersion ?? []
];
}
}
......@@ -47,7 +47,7 @@ class Meta implements \JsonSerializable
'repository_url' => $this->repositoryUrl,
'external_manual' => $this->externalManual,
'paypal_url' => $this->paypalUrl,
'tags' => $this->tags
'tags' => $this->tags ?? []
];
}
}
......@@ -71,7 +71,7 @@ class Version implements \JsonSerializable
'upload_date' => $this->uploadDate,
'review_state' => $this->reviewState,
'download' => $this->download,
'author' => $this->author
'author' => $this->author ?? []
];
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment