Skip to content

Commit

Permalink
fix: psalm
Browse files Browse the repository at this point in the history
Signed-off-by: John Molakvoæ <[email protected]>
  • Loading branch information
skjnldsv authored and come-nc committed Sep 14, 2023
1 parent f5c1ec3 commit fa7af53
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion lib/RecursiveDirectoryIteratorWithoutData.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ public function accept(): bool {
'data',
'..',
];
return !(in_array($this->current()->getFilename(), $excludes, true) || $this->current()->isDir());

$current = $this->current();
if (!$current) {
return false;
}

return !(in_array($current->getFilename(), $excludes, true) || $current->isDir());
}
}
2 changes: 1 addition & 1 deletion lib/Updater.php
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ public function createBackup() {
$this->silentLog('[info] end of createBackup()');
}

private function getChangelogURL($versionString) {
private function getChangelogURL(string $versionString) {
$this->silentLog('[info] getChangelogURL()');
$changelogWebsite = 'https://nextcloud.com/changelog/';
$changelogURL = $changelogWebsite . '#' . str_replace('.', '-', $versionString);
Expand Down

0 comments on commit fa7af53

Please sign in to comment.