mirror of
https://codeberg.org/icewind/streams.git
synced 2026-06-03 16:44:07 +02:00
add error cases to type hints
This commit is contained in:
parent
868374e4f8
commit
2346caf394
2 changed files with 5 additions and 5 deletions
|
|
@ -28,19 +28,19 @@ interface File {
|
||||||
public function stream_seek($offset, $whence = SEEK_SET);
|
public function stream_seek($offset, $whence = SEEK_SET);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return int
|
* @return int|false
|
||||||
*/
|
*/
|
||||||
public function stream_tell();
|
public function stream_tell();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param int $count
|
* @param int $count
|
||||||
* @return string
|
* @return string|false
|
||||||
*/
|
*/
|
||||||
public function stream_read($count);
|
public function stream_read($count);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $data
|
* @param string $data
|
||||||
* @return int
|
* @return int|false
|
||||||
*/
|
*/
|
||||||
public function stream_write($data);
|
public function stream_write($data);
|
||||||
|
|
||||||
|
|
@ -59,7 +59,7 @@ interface File {
|
||||||
public function stream_truncate($size);
|
public function stream_truncate($size);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return array
|
* @return array|false
|
||||||
*/
|
*/
|
||||||
public function stream_stat();
|
public function stream_stat();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,7 @@ interface Url {
|
||||||
/**
|
/**
|
||||||
* @param string $path
|
* @param string $path
|
||||||
* @param int $flags
|
* @param int $flags
|
||||||
* @return array
|
* @return array|false
|
||||||
*/
|
*/
|
||||||
public function url_stat($path, $flags);
|
public function url_stat($path, $flags);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue