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
MissingConstructor
message only shows first entry
#4297
Labels
Comments
I found these snippets: https://psalm.dev/r/9875de887d<?php
class foo {
private $a;
private $b;
}
|
I'm confused. What's incorrect about this? https://psalm.dev/r/469ee6ca54 |
I found these snippets: https://psalm.dev/r/469ee6ca54<?php
class foo {
private array $a;
private array $b;
private array $c;
}
|
I assume reopening it implies your confusion is resolved? ;) If not: Read the actual text of the error message. It's in all cases referring to |
Oh! |
muglug
added a commit
that referenced
this issue
Oct 7, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Given the following example class, the error reporting is not correctly updated for the 2+ property:
Reproducable on psalm.dev
It seems to me that when having multiple properties triggering the
MissingConstructor
error, while all are being reported, only the first property is used in the accompanying error messages.The text was updated successfully, but these errors were encountered: