Implement IniGetReturnTypeExtension#2362
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.
So what's the default return type? If we encounter 'unknown'|'max_execution_time', the return type from this extension will be wrong.
|
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)