mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 01:30:50 -04:00
psalm fix
Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
parent
22237b0f11
commit
3a67bf3f57
1 changed files with 1 additions and 1 deletions
|
|
@ -506,7 +506,7 @@ class SFTP extends Common {
|
|||
$stream = CountWrapper::wrap($stream, function (int $writtenSize) use (&$size) {
|
||||
$size = $writtenSize;
|
||||
});
|
||||
if (!$stream) {
|
||||
if (!is_resource($stream)) {
|
||||
throw new \Exception("Failed to wrap stream");
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue