Skip to content

Commit

Permalink
psalm fix
Browse files Browse the repository at this point in the history
Signed-off-by: Robin Appelman <robin@icewind.nl>
  • Loading branch information
icewind1991 committed Dec 6, 2023
1 parent 22237b0 commit 3a67bf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/files_external/lib/Lib/Storage/SFTP.php
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ public function writeStream(string $path, $stream, int $size = null): int {
$stream = CountWrapper::wrap($stream, function (int $writtenSize) use (&$size) {
$size = $writtenSize;
});
if (!$stream) {
if (!is_resource($stream)) {
throw new \Exception("Failed to wrap stream");
}
}
Expand Down

0 comments on commit 3a67bf3

Please sign in to comment.