intelephense
1.14.41.16.1
lib/stub/standard/standard_2.phplib/stub/standard/standard_2.php+10−4
Index: package/lib/stub/standard/standard_2.php
===================================================================
--- package/lib/stub/standard/standard_2.php
+++ package/lib/stub/standard/standard_2.php
@@ -228,8 +228,9 @@
* If the second parameter arr is present,
* variables are stored in this variable as array elements instead.<br/>
* Since 7.2.0 this parameter is not optional.
* </p>
+ * @param-out array $result
* @return void
*/
function parse_str(
string $string,
@@ -332,9 +333,9 @@
* An optional sign specifier that forces a sign
* (- or +) to be used on a number. By default, only the - sign is used
* on a number if it's negative. This specifier forces positive numbers
* to have the + sign attached as well, and was added in PHP 4.3.0.</p>
- * @param string|int|float ...$values <p>
+ * @param mixed ...$values <p>
* </p>
* @return string a string produced according to the formatting string
* format.
*/
@@ -485,10 +486,10 @@
* query - after the question mark ?
* fragment - after the hashmark #
* </p>
* <p>
- * If the component parameter is specified a
- * string is returned instead of an array.
+ * If the component parameter is specified a string is returned instead of an array.
+ * If the requested component doesn't exist within the given URL, null will be returned.
*/
#[ArrayShape(["scheme" => "string", "host" => "string", "port" => "int", "user" => "string", "pass" => "string", "query" => "string", "path" => "string", "fragment" => "string"])]
#[Pure]
function parse_url(string $url, int $component = -1): array|string|int|false|null {}
@@ -659,14 +660,16 @@
* If you do not want the function to append elements, call
* unset on the array before passing it to
* exec.
* </p>
+ * @param-out array $output
* @param int &$result_code [optional] <p>
* If the result_code argument is present
* along with the output argument, then the
* return status of the executed command will be written to this
* variable.
* </p>
+ * @param-out int $result_code
* @return string|false The last line from the result of the command. If you need to execute a
* command and have all the data from the command passed directly back without
* any interference, use the passthru function.
* </p>
@@ -686,8 +689,9 @@
* If the result_code argument is present, then the
* return status of the executed command will be written to this
* variable.
* </p>
+ * @param-out int $result_code
* @return string|false the last line of the command output on success, and false
* on failure.
*/
function system(string $command, &$result_code): string|false {}
@@ -723,8 +727,9 @@
* @param int &$result_code [optional] <p>
* If the result_code argument is present, the
* return status of the Unix command will be placed here.
* </p>
+ * @param-out int $result_code
* @return bool|null null on success or false on failure.
*/
#[LanguageLevelTypeAware(['8.2' => 'null|false'], default: 'null|bool')]
function passthru(string $command, &$result_code): ?bool {}
@@ -734,9 +739,9 @@
* @link https://php.net/manual/en/function.shell-exec.php
* @param string $command <p>
* The command that will be executed.
* </p>
- * @return string|false|null The output from the executed command or NULL if an error occurred or the command produces no output.
+ * @return string|false|null A string containing the output from the executed command, false if the pipe cannot be established or null if an error occurs or the command produces no output.
*/
function shell_exec(string $command): string|false|null {}
/**
@@ -779,8 +784,9 @@
* @param array &$pipes <p>
* Will be set to an indexed array of file pointers that correspond to
* PHP's end of any pipes that are created.
* </p>
+ * @param-out array $pipes
* @param string|null $cwd [optional] <p>
* The initial working dir for the command. This must be an
* absolute directory path, or null
* if you want to use the default value (the working dir of the current