Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
fix: psalm
Signed-off-by: John Molakvoæ <[email protected]>
  • Loading branch information
skjnldsv authored and blizzz committed Sep 13, 2023
commit f9cd8787cb32ae6376873ebdd9a3715979ece95d
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