Skip to content

Commit

Permalink
Added testcase to demonstrate rector#8977 (#440)
Browse files Browse the repository at this point in the history
Where an inline docblock is used in another tag, all subsequent tags are
removed.

rectorphp/rector#8977
  • Loading branch information
andrewnicols authored Jan 16, 2025
1 parent 6b0e4f0 commit c0eaa38
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions tests/AnnotationsToAttributes/Fixture/inline_docblock_tag.php.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?php

use PHPUnit\Framework\TestCase;

/**
* @copyright Example {@link https://example.com}
* @covers \Tests\BarController
*/
class BarController extends TestCase
{
}

?>
-----
<?php

use PHPUnit\Framework\TestCase;

/**
* @copyright Example {@link https://example.com}
*/
#[\PHPUnit\Framework\Attributes\CoversClass(\Tests\BarController::class)]
class BarController extends TestCase
{
}

?>

0 comments on commit c0eaa38

Please sign in to comment.