mirror of
https://codeberg.org/icewind/SMB.git
synced 2026-06-03 17:24:07 +02:00
minor type improvements
This commit is contained in:
parent
144439d61f
commit
b5c6921f2e
6 changed files with 17 additions and 17 deletions
|
|
@ -206,10 +206,10 @@ class NativeState {
|
|||
|
||||
/**
|
||||
* @param string $uri
|
||||
* @return array
|
||||
* @return array{"mtime": int, "size": int, "mode": int}
|
||||
*/
|
||||
public function stat(string $uri): array {
|
||||
/** @var array $result */
|
||||
/** @var array{"mtime": int, "size": int, "mode": int} $result */
|
||||
$result = @smbclient_stat($this->state, $uri);
|
||||
|
||||
$this->testResult($result, $uri);
|
||||
|
|
@ -219,10 +219,10 @@ class NativeState {
|
|||
/**
|
||||
* @param resource $file
|
||||
* @param string $path
|
||||
* @return array
|
||||
* @return array{"mtime": int, "size": int, "mode": int}
|
||||
*/
|
||||
public function fstat($file, string $path): array {
|
||||
/** @var array $result */
|
||||
/** @var array{"mtime": int, "size": int, "mode": int} $result */
|
||||
$result = @smbclient_fstat($this->state, $file);
|
||||
|
||||
$this->testResult($result, $path);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue