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

More precise strval family function signatures #2354

Conversation

dravnic
Copy link
Contributor

@dravnic dravnic commented Apr 20, 2023

This PR makes consistent error reporting on strval family non-scalars params with PHP's reporting.

Here is output how PHP handles these values: https://3v4l.org/O2KY5

Unfortunately PHP isn't consistent there, but it would be better that we comply with that than report false positives.

@ondrejmirtes ondrejmirtes merged commit ffe5931 into phpstan:1.10.x Apr 20, 2023
375 of 377 checks passed
@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
2 participants