phpstan fixes

This commit is contained in:
Robin Appelman 2025-10-25 21:43:15 +02:00
commit 6fe667eaca
2 changed files with 11 additions and 0 deletions

7
phpstan.neon Normal file
View file

@ -0,0 +1,7 @@
parameters:
level: 3
paths:
- src
stubFiles:
- stubs/krb.stub
- stubs/smbclient.stub

View file

@ -182,6 +182,10 @@ 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);