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
Add vimeo/psalm #76
Add vimeo/psalm #76
Conversation
9af5ba1
to
a09648b
Compare
@lukaslangen Thanks for this PR. To make travis pass, you can either temporarily add |
Added configuration in .travis.yml and composer.json Added psalm-baseline.xml Signed-off-by: Lukas Langen <lukas@langen.dev>
Signed-off-by: Lukas Langen <lukas@langen.dev>
2eefc6e
to
4e69dc6
Compare
Due to issues running on 7.4 Signed-off-by: Matthew Weier O'Phinney <matthew@weierophinney.net>
Signed-off-by: Matthew Weier O'Phinney <matthew@weierophinney.net>
@lukaslangen Thank you! I've rebased and pushed back to your branch. Since the 2.14.x series has a number of other changes, I'm resetting the baseline, and correcting a number of the autogenerated Thanks for getting this started! |
- Updates to Psalm 4.3 series and psalm/plugin-phpunit 0.15 series, to correct issues when defining array/iterable annotations. - Applies autofixes. - Adds appropriate `@psalm-return` annotations for unit test data providers. Signed-off-by: Matthew Weier O'Phinney <matthew@weierophinney.net>
src/Barcode.php
Outdated
*/ | ||
public function getChecksum() | ||
public function getChecksum(): bool |
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.
Thos change seems wrong 🤔
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.
Yeah, ran across another in the Bitwise validator. The original patch was on an older version of Psalm, so when I did my autofixes, it wasn't taking into account BC rules (which the v4 series does). Doing an audit of signatures now.
Psalm added `: int`, which (a) breaks BC, and (b) is incorrect, as it can sometimes return a null. Signed-off-by: Matthew Weier O'Phinney <matthew@weierophinney.net>
Since I did autocorrections originally with an older version of Psalm, it did not take into account backwards compatibility, and introduced a number of BC breaks. This patch corrects them. Signed-off-by: Matthew Weier O'Phinney <matthew@weierophinney.net>
Use camelCase, not TitleCase. Signed-off-by: Matthew Weier O'Phinney <matthew@weierophinney.net>
One more error that was invalid to add to the initial package baseline Signed-off-by: Matthew Weier O'Phinney <matthew@weierophinney.net>
Solves issue #73