mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
psalm fixes
This commit is contained in:
parent
05cc363c9f
commit
4a93467905
12 changed files with 61 additions and 33 deletions
|
|
@ -322,7 +322,7 @@ class NativeState {
|
|||
if (!$this->state) {
|
||||
throw new ConnectionException("Not connected");
|
||||
}
|
||||
if ($length) {
|
||||
if ($length !== null) {
|
||||
$result = @smbclient_write($this->state, $file, $data, $length);
|
||||
} else {
|
||||
$result = @smbclient_write($this->state, $file, $data);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue