intelephense
1.14.41.16.1
lib/stub/eio/eio.phplib/stub/eio/eio.php+38−38
Index: package/lib/stub/eio/eio.php
===================================================================
--- package/lib/stub/eio/eio.php
+++ package/lib/stub/eio/eio.php
@@ -112,9 +112,9 @@
* @param string $path Directory path
* @param int $pri The request priority: EIO_PRI_DEFAULT, EIO_PRI_MIN, EIO_PRI_MAX
* @param mixed $callback function is called when the request is done
* @param mixed $data Arbitrary variable passed to callback
- * @return resource|bool returns request resource on success, or false on failure.
+ * @return resource|false returns request resource on success, or false on failure.
*/
function eio_rmdir(string $path, int $pri = 0, mixed $callback = null, mixed $data = null) {}
/**
@@ -123,9 +123,9 @@
* @param string $path Path to file
* @param int $pri The request priority: EIO_PRI_DEFAULT, EIO_PRI_MIN, EIO_PRI_MAX
* @param mixed $callback function is called when the request is done
* @param mixed $data Arbitrary variable passed to callback
- * @return resource|bool returns request resource on success, or false on failure.
+ * @return resource|false returns request resource on success, or false on failure.
*/
function eio_unlink(string $path, int $pri = 0, mixed $callback = null, mixed $data = null) {}
/**
@@ -136,9 +136,9 @@
* @param float $mtime Modification time
* @param int $pri The request priority: EIO_PRI_DEFAULT, EIO_PRI_MIN, EIO_PRI_MAX
* @param mixed $callback function is called when the request is done
* @param mixed $data Arbitrary variable passed to callback
- * @return resource|bool returns request resource on success, or false on failure.
+ * @return resource|false returns request resource on success, or false on failure.
*/
function eio_utime(string $path, float $atime, float $mtime, int $pri = 0, mixed $callback = null, mixed $data = null) {}
/**
@@ -149,9 +149,9 @@
* @param int $dev If the file type is EIO_S_IFCHR or EIO_S_IFBLK then dev specifies the major and minor numbers of the newly created device special file.
* @param int $pri The request priority: EIO_PRI_DEFAULT, EIO_PRI_MIN, EIO_PRI_MAX
* @param mixed $callback function is called when the request is done
* @param mixed $data Arbitrary variable passed to callback
- * @return resource|bool returns request resource on success, or false on failure.
+ * @return resource|false returns request resource on success, or false on failure.
*/
function eio_mknod(string $path, int $mode, int $dev, int $pri = 0, mixed $callback = null, mixed $data = null) {}
/**
@@ -161,9 +161,9 @@
* @param string $new_path Target file path.
* @param int $pri The request priority: EIO_PRI_DEFAULT, EIO_PRI_MIN, EIO_PRI_MAX
* @param mixed $callback function is called when the request is done
* @param mixed $data Arbitrary variable passed to callback
- * @return resource|bool returns request resource on success, or false on failure.
+ * @return resource|false returns request resource on success, or false on failure.
*/
function eio_link(string $path, string $new_path, int $pri = 0, mixed $callback = null, mixed $data = null) {}
/**
@@ -173,9 +173,9 @@
* @param string $new_path Target path.
* @param int $pri The request priority: EIO_PRI_DEFAULT, EIO_PRI_MIN, EIO_PRI_MAX
* @param mixed $callback function is called when the request is done
* @param mixed $data Arbitrary variable passed to callback
- * @return resource|bool returns request resource on success, or false on failure.
+ * @return resource|false returns request resource on success, or false on failure.
*/
function eio_symlink(string $path, string $new_path, int $pri = 0, mixed $callback = null, mixed $data = null) {}
/**
@@ -185,9 +185,9 @@
* @param string $new_path Target path.
* @param int $pri The request priority: EIO_PRI_DEFAULT, EIO_PRI_MIN, EIO_PRI_MAX
* @param mixed $callback function is called when the request is done
* @param mixed $data Arbitrary variable passed to callback
- * @return resource|bool returns request resource on success, or false on failure.
+ * @return resource|false returns request resource on success, or false on failure.
*/
function eio_rename(string $path, string $new_path, int $pri = 0, mixed $callback = null, mixed $data = null) {}
/**
@@ -196,9 +196,9 @@
* @param mixed $fd Stream, Socket resource, or numeric file descriptor
* @param int $pri The request priority: EIO_PRI_DEFAULT, EIO_PRI_MIN, EIO_PRI_MAX
* @param mixed $callback function is called when the request is done
* @param mixed $data Arbitrary variable passed to callback
- * @return resource|bool returns request resource on success, or false on failure.
+ * @return resource|false returns request resource on success, or false on failure.
*/
function eio_close(mixed $fd, int $pri = 0, mixed $callback = null, mixed $data = null) {}
/**
@@ -206,9 +206,9 @@
* @link https://www.php.net/manual/en/function.eio-sync.php
* @param int $pri The request priority: EIO_PRI_DEFAULT, EIO_PRI_MIN, EIO_PRI_MAX
* @param mixed $callback function is called when the request is done
* @param mixed $data Arbitrary variable passed to callback
- * @return resource|bool returns request resource on success, or false on failure.
+ * @return resource|false returns request resource on success, or false on failure.
*/
function eio_sync(int $pri = 0, mixed $callback = null, mixed $data = null) {}
/**
@@ -217,9 +217,9 @@
* @param mixed $fd Stream, Socket resource, or numeric file descriptor
* @param int $pri The request priority: EIO_PRI_DEFAULT, EIO_PRI_MIN, EIO_PRI_MAX
* @param mixed $callback function is called when the request is done
* @param mixed $data Arbitrary variable passed to callback
- * @return resource|bool returns request resource on success, or false on failure.
+ * @return resource|false returns request resource on success, or false on failure.
*/
function eio_fsync(mixed $fd, int $pri = 0, mixed $callback = null, mixed $data = null) {}
/**
@@ -228,9 +228,9 @@
* @param mixed $fd Stream, Socket resource, or numeric file descriptor
* @param int $pri The request priority: EIO_PRI_DEFAULT, EIO_PRI_MIN, EIO_PRI_MAX
* @param mixed $callback function is called when the request is done
* @param mixed $data Arbitrary variable passed to callback
- * @return resource|bool returns request resource on success, or false on failure.
+ * @return resource|false returns request resource on success, or false on failure.
*/
function eio_fdatasync(mixed $fd, int $pri = 0, mixed $callback = null, mixed $data = null) {}
/**
@@ -241,9 +241,9 @@
* @param float $mtime Modification time
* @param int $pri The request priority: EIO_PRI_DEFAULT, EIO_PRI_MIN, EIO_PRI_MAX
* @param mixed $callback function is called when the request is done
* @param mixed $data Arbitrary variable passed to callback
- * @return resource|bool returns request resource on success, or false on failure.
+ * @return resource|false returns request resource on success, or false on failure.
*/
function eio_futime(mixed $fd, float $atime, float $mtime, int $pri = 0, mixed $callback = null, mixed $data = null) {}
/**
@@ -253,9 +253,9 @@
* @param int $offset Offset from beginning of the file.
* @param int $pri The request priority: EIO_PRI_DEFAULT, EIO_PRI_MIN, EIO_PRI_MAX
* @param mixed $callback function is called when the request is done
* @param mixed $data Arbitrary variable passed to callback
- * @return resource|bool returns request resource on success, or false on failure.
+ * @return resource|false returns request resource on success, or false on failure.
*/
function eio_ftruncate(mixed $fd, int $offset = 0, int $pri = 0, mixed $callback = null, mixed $data = null) {}
/**
@@ -265,9 +265,9 @@
* @param int $mode The new permissions. E.g. 0644.
* @param int $pri The request priority: EIO_PRI_DEFAULT, EIO_PRI_MIN, EIO_PRI_MAX
* @param mixed $callback function is called when the request is done
* @param mixed $data Arbitrary variable passed to callback
- * @return resource|bool returns request resource on success, or false on failure.
+ * @return resource|false returns request resource on success, or false on failure.
*/
function eio_chmod(string $path, int $mode, int $pri = 0, mixed $callback = null, mixed $data = null) {}
/**
@@ -277,9 +277,9 @@
* @param int $mode The new permissions. E.g. 0644.
* @param int $pri The request priority: EIO_PRI_DEFAULT, EIO_PRI_MIN, EIO_PRI_MAX
* @param mixed $callback function is called when the request is done
* @param mixed $data Arbitrary variable passed to callback
- * @return resource|bool returns request resource on success, or false on failure.
+ * @return resource|false returns request resource on success, or false on failure.
*/
function eio_fchmod(mixed $fd, int $mode, int $pri = 0, mixed $callback = null, mixed $data = null) {}
/**
@@ -290,9 +290,9 @@
* @param int $gid Group ID. Is ignored when equal to -1.
* @param int $pri The request priority: EIO_PRI_DEFAULT, EIO_PRI_MIN, EIO_PRI_MAX
* @param mixed $callback function is called when the request is done
* @param mixed $data Arbitrary variable passed to callback
- * @return resource|bool returns request resource on success, or false on failure.
+ * @return resource|false returns request resource on success, or false on failure.
*/
function eio_chown(string $path, int $uid, int $gid = -1, int $pri = 0, mixed $callback = null, ?mixed $data = null) {}
/**
@@ -303,9 +303,9 @@
* @param int $gid Group ID. Is ignored when equal to -1.
* @param int $pri The request priority: EIO_PRI_DEFAULT, EIO_PRI_MIN, EIO_PRI_MAX
* @param mixed $callback function is called when the request is done
* @param mixed $data Arbitrary variable passed to callback
- * @return resource|bool returns request resource on success, or false on failure.
+ * @return resource|false returns request resource on success, or false on failure.
*/
function eio_fchown(mixed $fd, int $uid, int $gid = -1, int $pri = 0, mixed $callback = null, mixed $data = null) {}
/**
@@ -315,9 +315,9 @@
* @param mixed $fd2 Stream, Socket resource, or numeric file descriptor
* @param int $pri The request priority: EIO_PRI_DEFAULT, EIO_PRI_MIN, EIO_PRI_MAX
* @param mixed $callback function is called when the request is done
* @param mixed $data Arbitrary variable passed to callback
- * @return resource|bool returns request resource on success, or false on failure.
+ * @return resource|false returns request resource on success, or false on failure.
*/
function eio_dup2(mixed $fd, mixed $fd2, int $pri = 0, mixed $callback = null, mixed $data = null) {}
/**
@@ -328,9 +328,9 @@
* @param int $offset Offset within the file.
* @param int $pri The request priority: EIO_PRI_DEFAULT, EIO_PRI_MIN, EIO_PRI_MAX
* @param mixed $callback function is called when the request is done
* @param mixed $data Arbitrary variable passed to callback
- * @return resource|bool returns request resource on success, or false on failure.
+ * @return resource|false returns request resource on success, or false on failure.
*/
function eio_read(mixed $fd, int $length, int $offset, int $pri, mixed $callback, mixed $data = null) {}
/**
@@ -342,9 +342,9 @@
* @param int $offset Offset from the beginning of file.
* @param int $pri The request priority: EIO_PRI_DEFAULT, EIO_PRI_MIN, EIO_PRI_MAX
* @param mixed $callback function is called when the request is done
* @param mixed $data Arbitrary variable passed to callback
- * @return resource|bool returns request resource on success, or false on failure.
+ * @return resource|false returns request resource on success, or false on failure.
*/
function eio_write(mixed $fd, mixed $str, int $length = 0, int $offset = 0, int $pri = 0, mixed $callback = null, mixed $data = null) {}
/**
@@ -353,9 +353,9 @@
* @param string $path Source symbolic link path
* @param int $pri The request priority: EIO_PRI_DEFAULT, EIO_PRI_MIN, EIO_PRI_MAX
* @param mixed $callback function is called when the request is done
* @param mixed $data Arbitrary variable passed to callback
- * @return resource|bool returns request resource on success, or false on failure.
+ * @return resource|false returns request resource on success, or false on failure.
*/
function eio_readlink(string $path, int $pri, mixed $callback, mixed $data = null) {}
/**
@@ -364,9 +364,9 @@
* @param string $path Short pathname
* @param int $pri The request priority: EIO_PRI_DEFAULT, EIO_PRI_MIN, EIO_PRI_MAX
* @param mixed $callback function is called when the request is done
* @param mixed $data Arbitrary variable passed to callback
- * @return resource|bool returns request resource on success, or false on failure.
+ * @return resource|false returns request resource on success, or false on failure.
*/
function eio_realpath(string $path, int $pri, mixed $callback, mixed $data = null) {}
/**
@@ -375,9 +375,9 @@
* @param string $path The file path
* @param int $pri The request priority: EIO_PRI_DEFAULT, EIO_PRI_MIN, EIO_PRI_MAX
* @param mixed $callback function is called when the request is done
* @param mixed $data Arbitrary variable passed to callback
- * @return resource|bool returns request resource on success, or false on failure.
+ * @return resource|false returns request resource on success, or false on failure.
*/
function eio_stat(string $path, int $pri, mixed $callback, mixed $data = null) {}
/**
@@ -386,9 +386,9 @@
* @param string $path The file path
* @param int $pri The request priority: EIO_PRI_DEFAULT, EIO_PRI_MIN, EIO_PRI_MAX
* @param mixed $callback function is called when the request is done
* @param mixed $data Arbitrary variable passed to callback
- * @return resource|bool returns request resource on success, or false on failure.
+ * @return resource|false returns request resource on success, or false on failure.
*/
function eio_lstat(string $path, int $pri, mixed $callback, mixed $data = null) {}
/**
@@ -397,9 +397,9 @@
* @param mixed $fd Stream, Socket resource, or numeric file descriptor
* @param int $pri The request priority: EIO_PRI_DEFAULT, EIO_PRI_MIN, EIO_PRI_MAX
* @param mixed $callback function is called when the request is done
* @param mixed $data Arbitrary variable passed to callback
- * @return resource|bool returns request resource on success, or false on failure.
+ * @return resource|false returns request resource on success, or false on failure.
*/
function eio_fstat(mixed $fd, int $pri, mixed $callback, mixed $data = null) {}
/**
@@ -408,9 +408,9 @@
* @param string $path Pathname of any file within the mounted file system
* @param int $pri The request priority: EIO_PRI_DEFAULT, EIO_PRI_MIN, EIO_PRI_MAX
* @param mixed $callback function is called when the request is done
* @param mixed $data Arbitrary variable passed to callback
- * @return resource|bool returns request resource on success, or false on failure.
+ * @return resource|false returns request resource on success, or false on failure.
*/
function eio_statvfs(string $path, int $pri, mixed $callback, mixed $data = null) {}
/**
@@ -419,9 +419,9 @@
* @param mixed $fd Stream, Socket resource, or numeric file descriptor
* @param int $pri The request priority: EIO_PRI_DEFAULT, EIO_PRI_MIN, EIO_PRI_MAX
* @param mixed $callback function is called when the request is done
* @param mixed $data Arbitrary variable passed to callback
- * @return resource|bool returns request resource on success, or false on failure.
+ * @return resource|false returns request resource on success, or false on failure.
*/
function eio_fstatvfs(mixed $fd, int $pri, mixed $callback, mixed $data = null) {}
/**
@@ -431,9 +431,9 @@
* @param int $flags Combination of EIO_READDIR_* constants.
* @param int $pri The request priority: EIO_PRI_DEFAULT, EIO_PRI_MIN, EIO_PRI_MAX
* @param mixed $callback function is called when the request is done
* @param mixed $data Arbitrary variable passed to callback
- * @return resource|bool returns request resource on success, or false on failure.
+ * @return resource|false returns request resource on success, or false on failure.
*/
function eio_readdir(string $path, int $flags, int $pri, mixed $callback, mixed $data = null) {}
/**
@@ -445,9 +445,9 @@
* @param int $length Number of bytes to copy.
* @param int $pri The request priority: EIO_PRI_DEFAULT, EIO_PRI_MIN, EIO_PRI_MAX
* @param mixed $callback function is called when the request is done
* @param mixed $data Arbitrary variable passed to callback
- * @return resource|bool returns request resource on success, or false on failure.
+ * @return resource|false returns request resource on success, or false on failure.
*/
function eio_sendfile(mixed $out_fd, mixed $in_fd, int $offset, int $length, int $pri, mixed $callback, mixed $data = null) {}
/**
@@ -458,9 +458,9 @@
* @param int $length Number of bytes to be read.
* @param int $pri The request priority: EIO_PRI_DEFAULT, EIO_PRI_MIN, EIO_PRI_MAX
* @param mixed $callback function is called when the request is done
* @param mixed $data Arbitrary variable passed to callback
- * @return resource|bool returns request resource on success, or false on failure.
+ * @return resource|false returns request resource on success, or false on failure.
*/
function eio_readahead(mixed $fd, int $offset, int $length, int $pri = EIO_PRI_DEFAULT, mixed $callback = null, mixed $data = null) {}
/**
@@ -471,9 +471,9 @@
* @param int $length Number of bytes to be read.
* @param int $pri The request priority: EIO_PRI_DEFAULT, EIO_PRI_MIN, EIO_PRI_MAX
* @param mixed $callback function is called when the request is done
* @param mixed $data Arbitrary variable passed to callback
- * @return resource|bool returns request resource on success, or false on failure.
+ * @return resource|false returns request resource on success, or false on failure.
*/
function eio_seek(mixed $fd, int $offset, int $length, int $pri = EIO_PRI_DEFAULT, mixed $callback = null, mixed $data = null) {}
/**
@@ -482,9 +482,9 @@
* @param mixed $fd File descriptor
* @param int $pri The request priority: EIO_PRI_DEFAULT, EIO_PRI_MIN, EIO_PRI_MAX
* @param mixed $callback function is called when the request is done
* @param mixed $data Arbitrary variable passed to callback
- * @return resource|bool returns request resource on success, or false on failure.
+ * @return resource|false returns request resource on success, or false on failure.
*/
function eio_syncfs(mixed $fd, int $pri = EIO_PRI_DEFAULT, mixed $callback = null, mixed $data = null) {}
/**
@@ -496,9 +496,9 @@
* @param int $flags A bit-mask. Can include any of the following values: EIO_SYNC_FILE_RANGE_WAIT_BEFORE, EIO_SYNC_FILE_RANGE_WRITE, EIO_SYNC_FILE_RANGE_WAIT_AFTER.
* @param int $pri The request priority: EIO_PRI_DEFAULT, EIO_PRI_MIN, EIO_PRI_MAX
* @param mixed $callback function is called when the request is done
* @param mixed $data Arbitrary variable passed to callback
- * @return resource|bool returns request resource on success, or false on failure.
+ * @return resource|false returns request resource on success, or false on failure.
*/
function eio_sync_file_range(mixed $fd, int $offset, int $nbytes, int $flags, int $pri = EIO_PRI_DEFAULT, mixed $callback = null, mixed $data = null) {}
/**
@@ -510,9 +510,9 @@
* @param int $length Specifies length the byte range.
* @param int $pri The request priority: EIO_PRI_DEFAULT, EIO_PRI_MIN, EIO_PRI_MAX
* @param mixed $callback function is called when the request is done
* @param mixed $data Arbitrary variable passed to callback
- * @return resource|bool returns request resource on success, or false on failure.
+ * @return resource|false returns request resource on success, or false on failure.
*/
function eio_fallocate(mixed $fd, int $mode, int $offset, int $length, int $pri = EIO_PRI_DEFAULT, mixed $callback = null, mixed $data = null) {}
/**
@@ -521,9 +521,9 @@
* @param mixed $execute Specifies the request function
* @param int $pri The request priority: EIO_PRI_DEFAULT, EIO_PRI_MIN, EIO_PRI_MAX
* @param mixed $callback function is called when the request is done
* @param mixed $data Arbitrary variable passed to callback
- * @return resource|bool returns request resource on success, or false on failure.
+ * @return resource|false returns request resource on success, or false on failure.
*/
function eio_custom(mixed $execute, int $pri, mixed $callback, mixed $data = null) {}
/**
@@ -532,9 +532,9 @@
* @param int $delay Delay in seconds
* @param int $pri The request priority: EIO_PRI_DEFAULT, EIO_PRI_MIN, EIO_PRI_MAX
* @param mixed $callback function is called when the request is done
* @param mixed $data Arbitrary variable passed to callback
- * @return resource|bool returns request resource on success, or false on failure.
+ * @return resource|false returns request resource on success, or false on failure.
*/
function eio_busy(int $delay, int $pri = EIO_PRI_DEFAULT, mixed $callback = null, mixed $data = null) {}
/**
@@ -542,9 +542,9 @@
* @link https://www.php.net/manual/en/function.eio-nop.php
* @param int $pri The request priority: EIO_PRI_DEFAULT, EIO_PRI_MIN, EIO_PRI_MAX
* @param mixed $callback function is called when the request is done
* @param mixed $data Arbitrary variable passed to callback
- * @return resource|bool returns request resource on success, or false on failure.
+ * @return resource|false returns request resource on success, or false on failure.
*/
function eio_nop(int $pri = EIO_PRI_DEFAULT, mixed $callback = null, mixed $data = null) {}
/**
@@ -558,9 +558,9 @@
* Creates a request group
* @link https://www.php.net/manual/en/function.eio-grp.php
* @param mixed $callback function is called when the request is done
* @param mixed $data Arbitrary variable passed to callback
- * @return resource returns request group resource on success, or false on failure.
+ * @return resource|false returns request group resource on success, or false on failure.
*/
function eio_grp(mixed $callback, mixed $data = null) {}
/**