1
0
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:
orklah 2023-10-25 19:47:17 +02:00 committed by GitHub
commit 2726ad4d6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 {}