mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +01:00
stubs exec param-out for $output
This commit is contained in:
parent
bf8e150f8f
commit
4f87da19e2
@ -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 {}
|
||||||
|
Loading…
Reference in New Issue
Block a user