-
-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
psalm integration #59
Conversation
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.
I prefer having @var array<x,y>
annotations over @psalm-var
as these are valid in most IDEs as of now.
Afaik, list<x>
is still not supported by most of the IDEs.
I know that @Ocramius has some opinions on that.
In my company, we are adding:
/**
* @var array<int,string>
* @psalm-var list<string>
*/
If you want IDE support, you can add Careful with removing |
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.
I think @boesing's suggestions cover most of what needs to be improved at type level: once that's through, 🚢
psalm.xml.dist
Outdated
<InternalMethod> | ||
<errorLevel type="suppress"> | ||
<referencedMethod name="PHPUnit\Framework\MockObject\Builder\InvocationMocker::method"/> | ||
</errorLevel> |
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.
I don't remember if this is copied from somewhere, but these <errorLevel
blocks can be merged together 👍
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.
Also: not a blocker 👍
2828cce
to
829b462
Compare
@snapshotpl I've rebased against current 2.6.x, which includes the cutover to GHA. The Psalm check is failing, and it looks like there's still some feedback that needs to be addressed; ping me when done, and I'll do a final review. |
Everything works on PHPStorm 2021.1 here (both on |
@weierophinney done |
Signed-off-by: Witold Wasiczko <witold@wasiczko.pl>
Signed-off-by: Witold Wasiczko <witold@wasiczko.pl>
Signed-off-by: Witold Wasiczko <witold@wasiczko.pl>
Signed-off-by: Witold Wasiczko <witold@wasiczko.pl>
Signed-off-by: Witold Wasiczko <witold@wasiczko.pl>
Signed-off-by: Witold Wasiczko <witold@wasiczko.pl>
Co-authored-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com> Signed-off-by: Witold Wasiczko <witold@wasiczko.pl>
Signed-off-by: Witold Wasiczko <witold@wasiczko.pl>
Signed-off-by: Witold Wasiczko <witold@wasiczko.pl>
- Revert addition of scalar type hint in `AbstractSerializer::serializeHeaders` to eliminate BC break - Revert addition of void return type in `CallbackStream::seek` to eliminate BC break - Revert parameter name change in `MessageTrait::hasHeader()` to eliminate BC break Signed-off-by: Matthew Weier O'Phinney <matthew@weierophinney.net>
Signed-off-by: Matthew Weier O'Phinney <matthew@weierophinney.net>
4429035
to
d839415
Compare
I've incorporated the feedback and pushed changes
Signed-off-by: Matthew Weier O'Phinney <matthew@weierophinney.net>
Signed-off-by: Matthew Weier O'Phinney <matthew@weierophinney.net>
Description
Closes #53