psalm fixes

This commit is contained in:
Robin Appelman 2025-10-24 17:31:24 +02:00
commit 4a93467905
12 changed files with 61 additions and 33 deletions

View file

@ -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);