Skip to content

Commit f2a8b52

Browse files
committed
fix: prevent psalm issue
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent f33a103 commit f2a8b52

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/NextcloudApiContext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ public function sendRequest(string $verb, string $url, $body = null, array $head
188188
}
189189
$fullUrl = $this->baseUrl . $url;
190190
$client = new Client();
191-
if (!is_null($this->currentUser)) {
191+
if ($this->currentUser !== '') {
192192
$options = array_merge(
193193
['cookies' => $this->getUserCookieJar($this->currentUser)],
194194
$options

0 commit comments

Comments
 (0)