Skip to content
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

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

Merged
merged 2 commits into from Jul 25, 2021
Merged

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

merged 2 commits into from Jul 25, 2021

Conversation

dktapps
Copy link
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
Member

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

@dktapps
Copy link
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
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
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
2 participants