Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/NextcloudApiContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@
}
$fullUrl = $this->baseUrl . $url;
$client = new Client();
if (!empty($this->currentUser)) {
if (!is_null($this->currentUser)) {

Check failure on line 178 in src/NextcloudApiContext.php

View workflow job for this annotation

GitHub Actions / Psalm check (8.1)

RedundantCondition

src/NextcloudApiContext.php:178:8: RedundantCondition: Type string for $this->currentUser is never null (see https://psalm.dev/122)

Check failure on line 178 in src/NextcloudApiContext.php

View workflow job for this annotation

GitHub Actions / Psalm check (8.2)

RedundantCondition

src/NextcloudApiContext.php:178:8: RedundantCondition: Type string for $this->currentUser is never null (see https://psalm.dev/122)

Check failure on line 178 in src/NextcloudApiContext.php

View workflow job for this annotation

GitHub Actions / Psalm check (8.3)

RedundantCondition

src/NextcloudApiContext.php:178:8: RedundantCondition: Type string for $this->currentUser is never null (see https://psalm.dev/122)
$options = array_merge(
['cookies' => $this->getUserCookieJar($this->currentUser)],
$options
Expand Down
Loading