-
Notifications
You must be signed in to change notification settings - Fork 504
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update functionMap #2783
Update functionMap #2783
Conversation
resources/functionMap.php
Outdated
@@ -12017,7 +12017,7 @@ | |||
'stream_set_write_buffer' => ['int', 'fp'=>'resource', 'buffer'=>'int'], | |||
'stream_socket_accept' => ['resource|false', 'serverstream'=>'resource', 'timeout='=>'float', '&w_peername='=>'string'], | |||
'stream_socket_client' => ['resource|false', 'remoteaddress'=>'string', '&w_errcode='=>'int', '&w_errstring='=>'string', 'timeout='=>'float', 'flags='=>'int', 'context='=>'resource'], | |||
'stream_socket_enable_crypto' => ['int|bool', 'stream'=>'resource', 'enable'=>'bool', 'cryptokind='=>'int', 'sessionstream='=>'resource'], | |||
'stream_socket_enable_crypto' => ['0|bool', 'stream'=>'resource', 'enable'=>'bool', 'crypto_method='=>'int', 'session_stream='=>'resource'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Parameters don't need to be renamed
resources/functionMap.php
Outdated
@@ -3334,7 +3334,7 @@ | |||
'getimagesize' => ['array{0:int, 1: int, 2: int, 3: string, mime: string, channels?: int, bits?: int}|false', 'imagefile'=>'string', '&w_info='=>'array'], | |||
'getimagesizefromstring' => ['array{0:int, 1: int, 2: int, 3: string, mime: string, channels?: int, bits?: int}|false', 'data'=>'string', '&w_info='=>'array'], | |||
'getlastmod' => ['int|false'], | |||
'getmxrr' => ['bool', 'hostname'=>'string', '&w_mxhosts'=>'array', '&w_weight='=>'array'], | |||
'getmxrr' => ['bool', 'hostname'=>'string', '&w_mxhosts'=>'list<string>', '&w_weight='=>'list<0, 65535>'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What effect should this have? The types aren't enforced: https://phpstan.org/r/25c3b187-4888-4aa4-86ad-5e350f16346f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see, it turns out that typing like @param-out
cannot be solved by modifying only the functionMap.
https://phpstan.org/r/3c7a8a08-abce-45c9-b310-0bcb4e4b6ba4
The execution results of the function are as follows:

076bb7b
to
6b3f805
Compare
6b3f805
to
046ea30
Compare
49433f2
to
fff2584
Compare
Thank you! |
No description provided.