diff --git a/stubs/CoreGenericFunctions.phpstub b/stubs/CoreGenericFunctions.phpstub index ff984b9da35..994391d0f9e 100644 --- a/stubs/CoreGenericFunctions.phpstub +++ b/stubs/CoreGenericFunctions.phpstub @@ -1266,16 +1266,20 @@ function base64_encode(string $data) : string {} * * @param resource|null $context * + * @return ($format is 0 ? list : array>)|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|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 : array>)