Skip to content

Improve getopt() function stub #3655

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

Merged
merged 5 commits into from
Apr 15, 2025
Merged

Conversation

janedbal
Copy link
Contributor

@janedbal janedbal commented Nov 22, 2024

stubs/core.stub Outdated
* @param-out int $rest_index
* @return __benevolent<array<string,string>|array<string,false>|array<string,list<mixed>>|false>
*/
function getopt(string $short_options, array $long_options = [], int &$rest_index = null): array|false {}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should I delete the entry from functionMap?

@janedbal janedbal changed the base branch from 2.0.x to 2.1.x March 4, 2025 12:50
@janedbal janedbal requested a review from ondrejmirtes March 4, 2025 13:12
@ondrejmirtes ondrejmirtes merged commit 99299a2 into phpstan:2.1.x Apr 15, 2025
415 of 417 checks passed
@ondrejmirtes
Copy link
Member

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

getopt() function missing @param-out int for $rest_index
2 participants