-
Notifications
You must be signed in to change notification settings - Fork 507
Implement IniGetReturnTypeExtension #2362
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
Conversation
You've opened the pull request against the latest branch 1.11.x. If your code is relevant on 1.10.x and you want it to be released sooner, please rebase your pull request and change its target to 1.10.x. |
This pull request has been marked as ready for review. |
$results = []; | ||
foreach ($argType->getConstantStrings() as $constantString) { | ||
if (!array_key_exists($constantString->getValue(), $types)) { | ||
continue; |
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.
So what's the default return type? If we encounter 'unknown'|'max_execution_time'
, the return type from this extension will be wrong.
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.
good catch
Thank you. |
Although I don't understand how it's gonna help #2358 (comment) because for that key it's still gonna be |
I think
but thats something I would expect to be part of #2358 see also https://www.php.net/manual/en/ini.core.php#ini.precision |
closes phpstan/phpstan#3063
required for #2358 (comment)