diff options
author | Faraz Samapoor <f.samapoor@gmail.com> | 2023-06-02 19:38:38 +0330 |
---|---|---|
committer | Simon L <szaimen@e.mail.de> | 2023-06-12 09:46:07 +0200 |
commit | 8c64ccae01ef3143a47dcca0b7ddb115d601c2f1 (patch) | |
tree | 4ec2df7a10490967614652126559855515156d3c /apps/dav/lib/DAV/Sharing | |
parent | 0bae21b1d1709e136a580b4ef2dc3cc725ca27b8 (diff) | |
download | nextcloud-server-8c64ccae01ef3143a47dcca0b7ddb115d601c2f1.tar.gz nextcloud-server-8c64ccae01ef3143a47dcca0b7ddb115d601c2f1.zip |
Fixes "PossiblyNullArgument" Psalm warnings.
Co-authored-by: Thomas Citharel <tcit@tcit.fr>
Signed-off-by: Faraz Samapoor <f.samapoor@gmail.com>
Diffstat (limited to 'apps/dav/lib/DAV/Sharing')
-rw-r--r-- | apps/dav/lib/DAV/Sharing/Plugin.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/dav/lib/DAV/Sharing/Plugin.php b/apps/dav/lib/DAV/Sharing/Plugin.php index c09723c3c36..46dd595e0c4 100644 --- a/apps/dav/lib/DAV/Sharing/Plugin.php +++ b/apps/dav/lib/DAV/Sharing/Plugin.php @@ -125,7 +125,7 @@ class Plugin extends ServerPlugin { $path = $request->getPath(); // Only handling xml - $contentType = $request->getHeader('Content-Type'); + $contentType = (string) $request->getHeader('Content-Type'); if (!str_contains($contentType, 'application/xml') && !str_contains($contentType, 'text/xml')) { return; } |