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

What means "expects [some type here], *NEVER* given"? #6781

Closed
ondrejmirtes opened this issue Mar 10, 2022 Discussed in #6382 · 2 comments · Fixed by phpstan/phpstan-src#1504
Closed

What means "expects [some type here], *NEVER* given"? #6781

ondrejmirtes opened this issue Mar 10, 2022 Discussed in #6382 · 2 comments · Fixed by phpstan/phpstan-src#1504
Labels
Milestone

Comments

@ondrejmirtes
Copy link
Member

Discussed in #6382

Originally posted by mkoske January 17, 2022
What means "expects [some type here], NEVER given"? I got this error message but didn't understand what it means?

https://phpstan.org/r/bb69a155-000d-4a89-b042-c208836a6080

Br, Miika

@ondrejmirtes ondrejmirtes added this to the Easy fixes milestone Mar 10, 2022
@phpstan-bot
Copy link
Contributor

@ondrejmirtes After the latest commit in 1.8.x, PHPStan now reports different result with your code snippet:

@@ @@
-44: Parameter #1 $values of function increment expects array{value0: int, value1: int}, *NEVER* given.
+No errors

@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 Aug 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants