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

Never type is not resolved #2297

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

Never type is not resolved #2297

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

Comments

@adaamz
Copy link
Contributor

adaamz commented Jul 13, 2019

Bug report

I just copy-pasted code from first post in PR adding support for never type #1472, but it fails on current ~master (and 0.11.12).

Code snippet that reproduces the problem

https://phpstan.org/r/3b4b3c0a-4ff5-4028-a4d8-b0f668fcd1c7

Expected output

No error.

@ondrejmirtes
Copy link
Member

Yeah, it's hard to differentiate between never - intended and never as a side-effect of unresolvable intersection type for example. There should be a property in NeverType that differentiates this.

@iluuu1994
Copy link
Contributor

I have the same issue. Wanted to use never for the first time 🙁

@ondrejmirtes ondrejmirtes added this to the Easy fixes milestone Aug 15, 2019
@ondrejmirtes
Copy link
Member

Fixed: 01a76d1

@lock lock bot locked as resolved and limited conversation to collaborators Dec 23, 2019
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

3 participants