mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 05:41:20 +01:00
Update Call Maps and Signature for get_headers
This commit is contained in:
parent
8329309999
commit
0d360419b7
@ -3699,7 +3699,7 @@ return [
|
|||||||
'get_defined_functions' => ['array{internal: list<callable-string>, user: list<callable-string>}', 'exclude_disabled='=>'bool'],
|
'get_defined_functions' => ['array{internal: list<callable-string>, user: list<callable-string>}', 'exclude_disabled='=>'bool'],
|
||||||
'get_defined_vars' => ['array'],
|
'get_defined_vars' => ['array'],
|
||||||
'get_extension_funcs' => ['list<callable-string>|false', 'extension'=>'string'],
|
'get_extension_funcs' => ['list<callable-string>|false', 'extension'=>'string'],
|
||||||
'get_headers' => ['array|false', 'url'=>'string', 'associative='=>'int', 'context='=>'resource'],
|
'get_headers' => ['array|false', 'url'=>'string', 'associative='=>'bool', 'context='=>'?resource'],
|
||||||
'get_html_translation_table' => ['array', 'table='=>'int', 'flags='=>'int', 'encoding='=>'string'],
|
'get_html_translation_table' => ['array', 'table='=>'int', 'flags='=>'int', 'encoding='=>'string'],
|
||||||
'get_include_path' => ['string'],
|
'get_include_path' => ['string'],
|
||||||
'get_included_files' => ['list<string>'],
|
'get_included_files' => ['list<string>'],
|
||||||
|
@ -48,7 +48,7 @@ return [
|
|||||||
],
|
],
|
||||||
'get_headers' => [
|
'get_headers' => [
|
||||||
'old' => ['array|false', 'url'=>'string', 'associative='=>'int'],
|
'old' => ['array|false', 'url'=>'string', 'associative='=>'int'],
|
||||||
'new' => ['array|false', 'url'=>'string', 'associative='=>'int', 'context='=>'resource'],
|
'new' => ['array|false', 'url'=>'string', 'associative='=>'int', 'context='=>'?resource'],
|
||||||
],
|
],
|
||||||
'getopt' => [
|
'getopt' => [
|
||||||
'old' => ['array<string,string|false|list<string|false>>|false', 'short_options'=>'string', 'long_options='=>'array'],
|
'old' => ['array<string,string|false|list<string|false>>|false', 'short_options'=>'string', 'long_options='=>'array'],
|
||||||
|
@ -673,6 +673,10 @@ return [
|
|||||||
'old' => ['list<string>|null', 'object_or_class'=>'mixed'],
|
'old' => ['list<string>|null', 'object_or_class'=>'mixed'],
|
||||||
'new' => ['list<string>', 'object_or_class'=>'object|class-string'],
|
'new' => ['list<string>', 'object_or_class'=>'object|class-string'],
|
||||||
],
|
],
|
||||||
|
'get_headers' => [
|
||||||
|
'old' => ['array|false', 'url'=>'string', 'associative='=>'int', 'context='=>'?resource'],
|
||||||
|
'new' => ['array|false', 'url'=>'string', 'associative='=>'bool', 'context='=>'?resource'],
|
||||||
|
],
|
||||||
'get_parent_class' => [
|
'get_parent_class' => [
|
||||||
'old' => ['class-string|false', 'object_or_class='=>'mixed'],
|
'old' => ['class-string|false', 'object_or_class='=>'mixed'],
|
||||||
'new' => ['class-string|false', 'object_or_class='=>'object|class-string'],
|
'new' => ['class-string|false', 'object_or_class='=>'object|class-string'],
|
||||||
|
@ -1482,11 +1482,11 @@ function bin2hex(string $string): string {}
|
|||||||
*
|
*
|
||||||
* @param resource|null $context
|
* @param resource|null $context
|
||||||
*
|
*
|
||||||
* @return ($associative is 0 ? list<string> : array<string, string|list<string>>)|false
|
* @return ($associative is false ? list<string> : array<string, string|list<string>>)|false
|
||||||
*
|
*
|
||||||
* @psalm-taint-sink ssrf $url
|
* @psalm-taint-sink ssrf $url
|
||||||
*/
|
*/
|
||||||
function get_headers(string $url, int $associative = 0, $context = null) : array|false {}
|
function get_headers(string $url, bool $associative = false, $context = null) : array|false {}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @psalm-pure
|
* @psalm-pure
|
||||||
|
Loading…
x
Reference in New Issue
Block a user