diff options
author | Max Kunzelmann <maxdev@posteo.de> | 2022-03-28 22:22:36 +0200 |
---|---|---|
committer | Max Kunzelmann <maxdev@posteo.de> | 2022-03-28 22:26:45 +0200 |
commit | 2952c7d01f9cbb7c22c532a895bb7b5ec3d528ea (patch) | |
tree | 33e63a9df330828ec90a6844282b27ff1f4170f6 /lib | |
parent | 3a135f0c5f02dc7dbcd8dc6879fd9dc4260f72b0 (diff) | |
download | nextcloud-server-2952c7d01f9cbb7c22c532a895bb7b5ec3d528ea.tar.gz nextcloud-server-2952c7d01f9cbb7c22c532a895bb7b5ec3d528ea.zip |
Use the null coalescing operator to set the value of `size`.
Signed-off-by: Max Kunzelmann <maxdev@posteo.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/Files/Storage/DAV.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/Files/Storage/DAV.php b/lib/private/Files/Storage/DAV.php index 568262d9817..ee874d97b55 100644 --- a/lib/private/Files/Storage/DAV.php +++ b/lib/private/Files/Storage/DAV.php @@ -588,7 +588,7 @@ class DAV extends Common { } return [ 'mtime' => isset($response['{DAV:}getlastmodified']) ? strtotime($response['{DAV:}getlastmodified']) : null, - 'size' => (int)isset($response['{DAV:}getcontentlength']) ? $response['{DAV:}getcontentlength'] : 0, + 'size' => (int)($response['{DAV:}getcontentlength'] ?? 0), ]; } catch (\Exception $e) { $this->convertException($e, $path); |