Skip to content

Conversation

@oschwald
Copy link
Contributor

@oschwald oschwald commented Apr 3, 2022

This returns string|false. false is returned if the header is not
set.

I suspect some of the other dynamic types for this function are also
wrong in similar cases, but I have only verified this one.

Closes phpstan/phpstan#6929.

@oschwald
Copy link
Contributor Author

oschwald commented Apr 3, 2022

As far as I can tell, the failure is unrelated.

@ondrejmirtes ondrejmirtes changed the base branch from 1.6.x to 1.5.x April 4, 2022 08:14
This returns `string|false`. `false` is returned if the header is not
set.

I suspect some of the other dynamic types for this function are also
wrong in similar cases, but I have only verified this one.

Closes #6929.
@ondrejmirtes ondrejmirtes merged commit 3e9b629 into phpstan:1.5.x Apr 4, 2022
@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.

Incorrect return type on curl_getinfo($ch, CURLINFO_CONTENT_TYPE)

2 participants