aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Storage
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2021-03-04 14:49:58 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2021-03-09 09:49:45 +0100
commit618805b14f163e630577f9ad701b12fa017a1d70 (patch)
tree7a4a0d74e31cfc97477c9d3b90de3c327942e00f /lib/private/Files/Storage
parent7198bed22d07493f7d5b98e0a0525e8c22b8361f (diff)
downloadnextcloud-server-618805b14f163e630577f9ad701b12fa017a1d70.tar.gz
nextcloud-server-618805b14f163e630577f9ad701b12fa017a1d70.zip
Fix RedundantPropertyInitializationCheck
For #25839 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/Files/Storage')
-rw-r--r--lib/private/Files/Storage/DAV.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Files/Storage/DAV.php b/lib/private/Files/Storage/DAV.php
index 0c9c41a3d9b..8f09452e1fb 100644
--- a/lib/private/Files/Storage/DAV.php
+++ b/lib/private/Files/Storage/DAV.php
@@ -69,7 +69,7 @@ class DAV extends Common {
protected $password;
/** @var string */
protected $user;
- /** @var string */
+ /** @var string|null */
protected $authType;
/** @var string */
protected $host;
@@ -143,7 +143,7 @@ class DAV extends Common {
'userName' => $this->user,
'password' => $this->password,
];
- if (isset($this->authType)) {
+ if ($this->authType !== null) {
$settings['authType'] = $this->authType;
}