intelephense

1.14.41.16.1
lib/stub/pcntl/pcntl.php
lib/stub/pcntl/pcntl.php
+11−2
Index: package/lib/stub/pcntl/pcntl.php
===================================================================
--- package/lib/stub/pcntl/pcntl.php
+++ package/lib/stub/pcntl/pcntl.php
@@ -67,8 +67,9 @@
  * <b>pcntl_wexitstatus</b>,
  * <b>pcntl_wtermsig</b> and
  * <b>pcntl_wstopsig</b>.
  * </p>
+ * @param-out int $status
  * @param int $flags [optional] <p>
  * The value of <i>options</i> is the value of zero
  * or more of the following two global constants
  * OR'ed together:
@@ -88,8 +89,9 @@
  * </tr>
  * </table>
  * </p>
  * @param array &$resource_usage
+ * @param-out array $resource_usage
  * @return int <b>pcntl_waitpid</b> returns the process ID of the
  * child which exited, -1 on error or zero if <b>WNOHANG</b> was used and no
  * child was available
  */
@@ -113,8 +115,9 @@
  * <b>pcntl_wexitstatus</b>,
  * <b>pcntl_wtermsig</b> and
  * <b>pcntl_wstopsig</b>.
  * </p>
+ * @param-out int $status
  * @param int $flags [optional] <p>
  * If wait3 is available on your system (mostly BSD-style systems), you can
  * provide the optional <i>flags</i> parameter. If this
  * parameter is not provided, wait will be used for the system call. If
@@ -138,8 +141,9 @@
  * </tr>
  * </table>
  * </p>
  * @param array &$resource_usage
+ * @param-out array $resource_usage
  * @return int <b>pcntl_wait</b> returns the process ID of the
  * child which exited, -1 on error or zero if WNOHANG was provided as an
  * option (on wait3-available systems) and no child was available.
  */
@@ -283,9 +287,10 @@
  * the value of that variable.
  * </p>
  * @return bool <b>FALSE</b> on error and does not return on success.
  */
-function pcntl_exec(string $path, array $args = [], array $env_vars = []): bool {}
+#[LanguageLevelTypeAware(["8.5" => "false"], default: "bool")]
+function pcntl_exec(string $path, array $args = [], array $env_vars = []) {}
 
 /**
  * Set an alarm clock for delivery of a signal
  * @link https://php.net/manual/en/function.pcntl-alarm.php
@@ -387,8 +392,9 @@
  * @param array &$old_signals [optional] <p>
  * The <i>old_signals</i> parameter is set to an array
  * containing the list of the previously blocked signals.
  * </p>
+ * @param-out array $old_signals
  * @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
  */
 function pcntl_sigprocmask(int $mode, array $signals, &$old_signals): bool {}
 
@@ -427,8 +433,9 @@
  * signal:
  * band: Band event
  * fd: File descriptor number
  * </p>
+ * @param-out array $info
  * @return int|false On success, <b>pcntl_sigwaitinfo</b> returns a signal number.
  */
 function pcntl_sigwaitinfo(array $signals, &$info = []): int|false {}
 
@@ -442,8 +449,9 @@
  * The <i>siginfo</i> is set to an array containing
  * informations about the signal. See
  * <b>pcntl_sigwaitinfo</b>.
  * </p>
+ * @param-out array $info
  * @param int $seconds [optional] <p>
  * Timeout in seconds.
  * </p>
  * @param int $nanoseconds [optional] <p>
@@ -489,12 +497,13 @@
  * @return bool
  * @since 7.4
  */
 function pcntl_unshare(int $flags): bool {}
+
 /**
  * @since 8.4
  */
-function pcntl_waitid(int $idtype = P_ALL, ?int $id = null, &$info = [], int $flags = WEXITED): bool {}
+function pcntl_waitid(int $idtype = P_ALL, ?int $id = null, &$info = [], int $flags = WEXITED, #[StubsElementAvailable(from: '8.5')] &$resource_usage = []): bool {}
 /**
  * @since 8.4
  */
 function pcntl_getcpuaffinity(?int $process_id = null): array|false {}