diff --git a/stubs/CoreGenericFunctions.phpstub b/stubs/CoreGenericFunctions.phpstub index 793150fbdfa..29bc367d568 100644 --- a/stubs/CoreGenericFunctions.phpstub +++ b/stubs/CoreGenericFunctions.phpstub @@ -1797,3 +1797,8 @@ 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) +*/ +function get_browser(?string $user_agent = null, bool $return_array = false): object|array|false {}