Skip to content

Commit

Permalink
Merge pull request #10314 from simonberger/narrow-get_browser-return-…
Browse files Browse the repository at this point in the history
…types

Narrow down `get_browser` returning array or object
  • Loading branch information
orklah authored Oct 25, 2023
2 parents 6e56990 + 6f32c72 commit 2726ad4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions stubs/CoreGenericFunctions.phpstub
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}

0 comments on commit 2726ad4

Please sign in to comment.