Unexpected "Method [...] never returns [...] so it can be removed from the return type." #13395
-
|
I have the following code: https://phpstan.org/r/9eb062dd-1670-4e01-b634-380b80313cc4 Can someone explain to me why the message "Method HelloWorld::buildViews() never returns non-empty-list so it can be removed from the return type." is generated when using the Edit: when I make the |
Beta Was this translation helpful? Give feedback.
Answered by
ondrejmirtes
Sep 2, 2025
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
RubenColpaert
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Fixed phpstan/phpstan-src@e8b3111