mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 09:14:06 +02:00
phpstan fixes
This commit is contained in:
parent
2bbc37a55d
commit
6fe667eaca
2 changed files with 11 additions and 0 deletions
7
phpstan.neon
Normal file
7
phpstan.neon
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
parameters:
|
||||
level: 3
|
||||
paths:
|
||||
- src
|
||||
stubFiles:
|
||||
- stubs/krb.stub
|
||||
- stubs/smbclient.stub
|
||||
|
|
@ -182,6 +182,10 @@ 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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue