Skip to content

More precise strval family function signatures#2354

Merged
ondrejmirtes merged 3 commits intophpstan:1.10.xfrom
giscloud:more-precise-strval-family-function-signatures
Apr 20, 2023
Merged

More precise strval family function signatures#2354
ondrejmirtes merged 3 commits intophpstan:1.10.xfrom
giscloud:more-precise-strval-family-function-signatures

Conversation

@dravnic
Copy link
Copy Markdown
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
@ondrejmirtes
Copy link
Copy Markdown
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.

2 participants