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