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

UnusedUses ignores uses in annotations with multi lines string arguments #1606

Conversation

mathroc
Copy link
Contributor

@mathroc mathroc commented Aug 8, 2023

Reproduce issue with the Namespaces.UnusedUses sniff that don't detect usages in annotations when the annotation has multiline string arguments

Work in progress: I didn't try running the test locally yet

@ondrejmirtes
Copy link
Contributor

Have you tried updating phpdoc-parser? It should be fine, https://github.com/phpstan/phpdoc-parser/releases/tag/1.23.1 fixes this.

@mathroc
Copy link
Contributor Author

mathroc commented Aug 8, 2023

Have you tried updating phpdoc-parser? It should be fine, https://github.com/phpstan/phpdoc-parser/releases/tag/1.23.1 fixes this.

I didn't, I wanted to reproduce the issue first. but looks like it's fixed by updating this dependency, nice timing :)

@mathroc
Copy link
Contributor Author

mathroc commented Aug 8, 2023

maybe not worth adding a test then?

@kukulich
Copy link
Contributor

kukulich commented Aug 8, 2023

@mathroc

maybe not worth adding a test then?

Yes, please. Rebase your branch on master before please.

@mathroc mathroc force-pushed the unused-uses-annotation-with-multilines-string-arguments branch from 05510f2 to ffaffaf Compare August 8, 2023 10:55
@mathroc mathroc force-pushed the unused-uses-annotation-with-multilines-string-arguments branch from ffaffaf to e7f1729 Compare August 8, 2023 10:56
@mathroc
Copy link
Contributor Author

mathroc commented Aug 8, 2023

Yes, please. Rebase your branch on master before please.

done 👍

@kukulich kukulich marked this pull request as ready for review August 8, 2023 11:38
@kukulich kukulich merged commit fd2b381 into slevomat:master Aug 8, 2023
35 checks passed
@kukulich
Copy link
Contributor

kukulich commented Aug 8, 2023

Thanks!

@mathroc mathroc deleted the unused-uses-annotation-with-multilines-string-arguments branch August 10, 2023 23:21
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.

3 participants