1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-26 20:34:47 +01:00

stubs exec param-out for $output

This commit is contained in:
kkmuffme 2023-08-18 14:45:58 +02:00
parent bf8e150f8f
commit 4f87da19e2

View File

@ -1786,3 +1786,14 @@ if (defined('GLOB_BRACE')) {
function glob (string $pattern, int $flags = 0): array|false {} function glob (string $pattern, int $flags = 0): array|false {}
} }
/**
* @psalm-template TOutput of array|null
*
* @param TOutput $output
* @param-out (TOutput is null ? list<string> : array) $output
* @param-out int $result_code
*
* @psalm-taint-specialize
* @psalm-taint-sink shell $command
*/
function exec(string $command, &$output = null, int &$result_code = null): string|false {}