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

Misleading message when calling method on never type. #2298

Closed
adaamz opened this issue Jul 13, 2019 · 2 comments
Closed

Misleading message when calling method on never type. #2298

adaamz opened this issue Jul 13, 2019 · 2 comments
Labels
Milestone

Comments

@adaamz
Copy link
Contributor

adaamz commented Jul 13, 2019

Bug report

In example code there really something smell, but phpstan says that cannot call method on array.

Code snippet that reproduces the problem

https://phpstan.org/r/ec54301e-c83b-4796-a7df-a5b13b9d4aee

Expected output

Cannot call method on *never*.

@ondrejmirtes
Copy link
Member

Probably some side-effect of nonEmpty accessory type in TypeSpecifier.

@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants