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

fix #5501 #6253

Merged
merged 4 commits into from Aug 9, 2021
Merged

fix #5501 #6253

merged 4 commits into from Aug 9, 2021

Conversation

orklah
Copy link
Collaborator

@orklah orklah commented Aug 6, 2021

The issue here was that Psalm registered the suppression with an offset (cursor position) relative to the beggining of the docblock whereas the expected offset was absolute (from the beggining of the file).

This lead me to send the starting position of the docblock to the parse function to make the addition, and then I had to go back to every place that used this offset to substract the docblock position.

I hope I didn't miss one, this was not easy to do.

I'm not sure if it will fix other similar issues or not, and frankly, I'm not even sure to understand why some suppression work and not other (I think this has to do with which type of docblock and where it need to be parsed)

this fixes #5501

@weirdan weirdan merged commit 868a167 into vimeo:master Aug 9, 2021
@weirdan
Copy link
Collaborator

weirdan commented Aug 9, 2021

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

@psalm-suppress NonInvariantDocblockPropertyType is reported as unused
2 participants