Skip to content

Commit 89526bf

Browse files
joshtrichardsbackportbot[bot]
authored andcommitted
fix(FileInfo): harden getChecksum()
- `checksum` is already optional/derived metadata in practice - callers already treat `null`l / `''` as "no checksum" Signed-off-by: Josh <josh.t.richards@gmail.com>
1 parent dae47de commit 89526bf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/private/Files/FileInfo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ public function addSubEntry($data, $entryPath) {
382382
*/
383383
#[\Override]
384384
public function getChecksum() {
385-
return $this->data['checksum'];
385+
return return $this->data['checksum'] ?? '';
386386
}
387387

388388
#[\Override]

0 commit comments

Comments
 (0)