diff --git a/src/Native/NativeState.php b/src/Native/NativeState.php index bc6a98b..e6a2e01 100644 --- a/src/Native/NativeState.php +++ b/src/Native/NativeState.php @@ -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() {