@@ -18,8 +18,6 @@ |
||
18 | 18 | use Icewind\SMB\IServer; |
19 | 19 | use Icewind\SMB\ISystem; |
20 | 20 | use Icewind\Streams\CallbackWrapper; |
21 | -use Icewind\SMB\Native\NativeShare; |
|
22 | -use Icewind\SMB\Native\NativeServer; |
|
23 | 21 | |
24 | 22 | class Share extends AbstractShare { |
25 | 23 | /** |
@@ -33,6 +33,7 @@ discard block |
||
33 | 33 | * Note that this is a blocking process and will cause the process to block forever if not explicitly terminated |
34 | 34 | * |
35 | 35 | * @param callable(Change):?bool $callback |
36 | + * @return void |
|
36 | 37 | */ |
37 | 38 | public function listen(callable $callback): void; |
38 | 39 | |
@@ -40,6 +41,7 @@ discard block |
||
40 | 41 | * Stop listening for changes |
41 | 42 | * |
42 | 43 | * Note that any pending changes will be discarded |
44 | + * @return void |
|
43 | 45 | */ |
44 | 46 | public function stop(): void; |
45 | 47 | } |
@@ -58,6 +58,9 @@ |
||
58 | 58 | 113 => NoRouteToHostException::class |
59 | 59 | ]; |
60 | 60 | |
61 | + /** |
|
62 | + * @param string|null $path |
|
63 | + */ |
|
61 | 64 | protected function handleError(?string $path): void { |
62 | 65 | /** @var int $error */ |
63 | 66 | $error = smbclient_state_errno($this->state); |