Skip to content

Fix #7531 - "Unreachable statement" false positive for html whitespace#1497

Closed
murilohpucci wants to merge 2 commits intophpstan:1.8.xfrom
murilohpucci:bugfix/7531
Closed

Fix #7531 - "Unreachable statement" false positive for html whitespace#1497
murilohpucci wants to merge 2 commits intophpstan:1.8.xfrom
murilohpucci:bugfix/7531

Conversation

@murilohpucci
Copy link

Hey, first time here, I hope this can help you.

Fixing: #7531

@rvanvelzen
Copy link
Contributor

You should add a test with non-whitespace html as well, to make sure that that is reported.

@murilohpucci
Copy link
Author

You should add a test with non-whitespace html as well, to make sure that that is reported.

I hope I got it right, I've just added one more test scenario where there's non-whitespaces, and in this case it's expected to not be reported by phpstan

@rvanvelzen
Copy link
Contributor

Sorry, I guess that was a bit ambiguous. I avtually meant non-whitespace and non-empty, because that should be reported :)

@ondrejmirtes
Copy link
Member

@murilohpucci Would be nice if you were able to finish this PR :)

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.

3 participants