-
-
Notifications
You must be signed in to change notification settings - Fork 132
suppress some psalm reported errors #142
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
Conversation
…plementation or are related to deserialization workaround
af073a6
to
c55aa7f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for dealing with these issues!
Looks good to me, I added 2 questions inline.
@@ -215,6 +225,7 @@ public static function isValid($value) | |||
* | |||
* @psalm-pure | |||
* @psalm-assert T $value | |||
* @param mixed $value |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why add this parameter docblock?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a MissingParamType
psalm error.
https://psalm.dev/docs/running_psalm/issues/MissingParamType/
@@ -226,6 +237,8 @@ public static function assertValidValue($value): void | |||
* | |||
* @psalm-pure | |||
* @psalm-assert T $value | |||
* @param mixed $value | |||
* @return string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here, why add this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here. The @return I guess it's just the PhpStorm complaining about.
Just a mention here. This is not very important to be released after merge. The changes are mostly for fixing pipeline on master. |
Thanks! |
suppress some psalm errors that are actually bugs in current psalm implementation or are related to deserialization workaround