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

PhpdocTagTypeFixer - must not remove inlined tags within other tags #5849

Merged
merged 1 commit into from
Aug 28, 2021

Conversation

boesing
Copy link
Contributor

@boesing boesing commented Aug 4, 2021

Fixes #5815

@boesing boesing force-pushed the bugfix/phpdoc_tag_type-inline-see branch from 192f8fd to 907a747 Compare August 4, 2021 21:54
@coveralls
Copy link

coveralls commented Aug 5, 2021

Coverage Status

Coverage increased (+0.0004%) to 92.294% when pulling af78040 on boesing:bugfix/phpdoc_tag_type-inline-see into a39a3e0 on FriendsOfPHP:3.0.

@@ -348,6 +348,36 @@ public function provideFixCases()
'<?php
/**
* @return array{0: float, 1: int}
*/',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add a case like the failing one you reported in #5815, i.e. @internal ending with a {@see tag}?

@boesing boesing force-pushed the bugfix/phpdoc_tag_type-inline-see branch from 907a747 to c818712 Compare August 5, 2021 17:00
@boesing
Copy link
Contributor Author

boesing commented Aug 5, 2021

@juliendufresne yah, was thinking the same yesterday evening but was too tired. Added now, thanks for the reminder!

@kubawerlos kubawerlos added the RTM Ready To Merge label Aug 28, 2021
@kubawerlos kubawerlos added this to the 3.0.3 milestone Aug 28, 2021
@keradus keradus removed the RTM Ready To Merge label Aug 28, 2021
@keradus keradus changed the title Bugfix: PhpdocTagTypeFixer must not remove inlined tags within other tags PhpdocTagTypeFixer - must not remove inlined tags within other tags Aug 28, 2021
@keradus keradus force-pushed the bugfix/phpdoc_tag_type-inline-see branch from c818712 to af78040 Compare August 28, 2021 13:45
@keradus
Copy link
Member

keradus commented Aug 28, 2021

Thank you @boesing.

@keradus keradus merged commit 797cea2 into PHP-CS-Fixer:3.0 Aug 28, 2021
@boesing boesing deleted the bugfix/phpdoc_tag_type-inline-see branch August 28, 2021 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

phpdoc_tag_type destroys inline {@see Foo} annotations when used in @internal annotation
5 participants