mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-10-01 00:54:06 +02:00
psalm fixes
This commit is contained in:
parent
f8294390e2
commit
a9fcbd8484
1 changed files with 1 additions and 6 deletions
|
|
@ -182,10 +182,6 @@ final class NativeState {
|
||||||
if (!$this->state) {
|
if (!$this->state) {
|
||||||
throw new ConnectionException("Not connected");
|
throw new ConnectionException("Not connected");
|
||||||
}
|
}
|
||||||
/**
|
|
||||||
* false positive from wrong reflection info
|
|
||||||
* @phpstan-ignore arguments.count
|
|
||||||
*/
|
|
||||||
$result = @smbclient_rename($this->state, $old, $this->state, $new);
|
$result = @smbclient_rename($this->state, $old, $this->state, $new);
|
||||||
|
|
||||||
$this->testResult($result, $new);
|
$this->testResult($result, $new);
|
||||||
|
|
@ -421,11 +417,10 @@ final class NativeState {
|
||||||
if (!$this->state) {
|
if (!$this->state) {
|
||||||
throw new ConnectionException("Not connected");
|
throw new ConnectionException("Not connected");
|
||||||
}
|
}
|
||||||
/** @var bool $result */
|
|
||||||
$result = @smbclient_setxattr($this->state, $uri, $key, $value, $flags);
|
$result = @smbclient_setxattr($this->state, $uri, $key, $value, $flags);
|
||||||
|
|
||||||
$this->testResult($result, $uri);
|
$this->testResult($result, $uri);
|
||||||
return $result;
|
return $result !== false;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function __destruct() {
|
public function __destruct() {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue