mirror of
https://github.com/danog/psalm.git
synced 2024-11-30 04:39:00 +01:00
Merge pull request #10314 from simonberger/narrow-get_browser-return-types
Narrow down `get_browser` returning array or object
This commit is contained in:
commit
2726ad4d6f
@ -1797,3 +1797,9 @@ if (defined('GLOB_BRACE')) {
|
||||
* @psalm-taint-sink shell $command
|
||||
*/
|
||||
function exec(string $command, &$output = null, int &$result_code = null): string|false {}
|
||||
|
||||
/**
|
||||
* @return ($return_array is true ? array|false : object|false)
|
||||
* @psalm-ignore-falsable-return
|
||||
*/
|
||||
function get_browser(?string $user_agent = null, bool $return_array = false): object|array|false {}
|
||||
|
Loading…
Reference in New Issue
Block a user