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 invalid syntax in phpdoc #128

Merged
merged 1 commit into from
Jan 4, 2022
Merged

fix invalid syntax in phpdoc #128

merged 1 commit into from
Jan 4, 2022

Conversation

orklah
Copy link
Contributor

@orklah orklah commented Jan 4, 2022

Hi,

This PR fixes an extraneous bracket at the end of a phpdoc line.

Related to vimeo/psalm#7289

@orklah
Copy link
Contributor Author

orklah commented Jan 4, 2022

@ondrejmirtes I'm surprised phpstan did not pick that up, this repo is on level 8

@Seldaek
Copy link
Member

Seldaek commented Jan 4, 2022

Indeed it is pretty lenient with extraneous characters, I suppose as long as it finished parsing a valid value it ignores what follows https://phpstan.org/r/27b3fb0e-1cb0-4b4d-9cd7-1e37a5ce260e

Anyway thanks for the fix

@Seldaek Seldaek merged commit 3a6a438 into composer:main Jan 4, 2022
@orklah
Copy link
Contributor Author

orklah commented Jan 4, 2022

Thanks for merging!

as long as it finished parsing a valid value it ignores what follows

Probably yeah, this must make this hard to debug though: https://phpstan.org/r/6a8372a5-0f20-4469-a134-0807a15d3e6c

@Seldaek
Copy link
Member

Seldaek commented Jan 4, 2022

True, I'd say please report this to phpstan that example makes a very good case for a need to fix it

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.

None yet

2 participants