Skip to content

proc_open() accepts list<string> for $command in 7.4+#590

Merged
ondrejmirtes merged 2 commits intophpstan:masterfrom
pmmp:proc-open-php74
Jul 25, 2021
Merged

proc_open() accepts list<string> for $command in 7.4+#590
ondrejmirtes merged 2 commits intophpstan:masterfrom
pmmp:proc-open-php74

Conversation

@dktapps
Copy link
Copy Markdown
Contributor

@dktapps dktapps commented Jul 24, 2021

I'm not sure if this needs to be added somewhere for 8.0 as well? The stubs will have it correct, but won't be as detailed about the type.

@ondrejmirtes
Copy link
Copy Markdown
Member

Please write some NodeScopeResolverTest asserts to confirm what works and what doesn't.

@dktapps
Copy link
Copy Markdown
Contributor Author

dktapps commented Jul 25, 2021

I'm not sure how to write such test for NodeScopeResolver. I don't think assertType test suit for this.

@ondrejmirtes
Copy link
Copy Markdown
Member

Oh, it's about accepting, not returning. So you need to test it in CallToFunctionParametersRuleTest.

@ondrejmirtes ondrejmirtes merged commit 1e7ceae into phpstan:master Jul 25, 2021
@ondrejmirtes
Copy link
Copy Markdown
Member

Thank you!

@dktapps dktapps deleted the proc-open-php74 branch July 25, 2021 20:28
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.

2 participants