Skip to content

Commit

Permalink
Merge pull request #6206 from Jack97/update-return-types
Browse files Browse the repository at this point in the history
Update return types for get_headers and get_meta_tags
  • Loading branch information
weirdan authored Jul 29, 2021
2 parents 9414b11 + 6ed8a4d commit 6c475e0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions stubs/CoreGenericFunctions.phpstub
Original file line number Diff line number Diff line change
Expand Up @@ -1266,16 +1266,20 @@ function base64_encode(string $data) : string {}
*
* @param resource|null $context
*
* @return ($format is 0 ? list<string> : array<string, string|list<string>>)|false
*
* @psalm-taint-sink ssrf $url
*/
function get_headers(string $url, int $format = 0, $context = null) : array {}
function get_headers(string $url, int $format = 0, $context = null) : array|false {}

/**
* @psalm-pure
*
* @return array<lowercase-string, string>|false
*
* @psalm-taint-sink ssrf $filename
*/
function get_meta_tags(string $filename, bool $use_include_path = false) : array {}
function get_meta_tags(string $filename, bool $use_include_path = false) : array|false {}

/**
* @return ($categorize is false ? array<string,int|string|float|bool|null|array|resource> : array<string, array<string,int|string|float|bool|null|array|resource>>)
Expand Down

0 comments on commit 6c475e0

Please sign in to comment.