From 5b75fb4b5d8aa8e13d64f0b91328504e7699c360 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Mon, 31 Aug 2026 17:06:02 +0200 Subject: [PATCH] psalm fixes --- src/Native/NativeState.php | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) 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() {