mirror of
https://github.com/nextcloud/server.git
synced 2026-02-20 00:12:30 -05:00
fix(psalm): Fix InvalidArgument in FilesByType OpenMetrics exporter
Signed-off-by: Carl Schwan <carlschwan@kde.org>
This commit is contained in:
parent
58de51160c
commit
6eb1609b35
1 changed files with 1 additions and 1 deletions
|
|
@ -72,7 +72,7 @@ class FilesByType extends Cached {
|
|||
foreach ($metrics->iterateAssociative() as $count) {
|
||||
yield new Metric(
|
||||
$count['count'],
|
||||
['mimetype' => $this->mimetypeLoader->getMimetypeById($count['mimetype'])],
|
||||
['mimetype' => $this->mimetypeLoader->getMimetypeById($count['mimetype']) ?? ''],
|
||||
$now,
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue