Skip to content

More precise strval family function signatures #2354

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

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.

dravnic added 3 commits April 20, 2023 08:46

Verified

This commit was signed with the committer’s verified signature.
ondrejmirtes Ondřej Mirtes
…s are valid

Verified

This commit was signed with the committer’s verified signature.
ondrejmirtes Ondřej Mirtes

Verified

This commit was signed with the committer’s verified signature.
ondrejmirtes Ondřej Mirtes
@ondrejmirtes ondrejmirtes merged commit ffe5931 into phpstan:1.10.x Apr 20, 2023
@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.

None yet

2 participants