Skip to content

Commit

Permalink
[AutoImport] Handle multiple @\ after GenericTagValueNode
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Nov 23, 2023
1 parent 72c0216 commit c023cba
Showing 1 changed file with 44 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?php

namespace Rector\Core\Tests\Issues\AutoImport\Fixture\DocBlock;

class TwoRoutesAfterGeneric
{
/**
* @OA\Property(
* type="array",
* @OA\Items(ref=@Model(type=TestItem::class))
* )
* @\Symfony\Component\Routing\Annotation\Route("/first", methods={"GET"})
* @\Symfony\Component\Routing\Annotation\Route("/second", methods={"GET"})
*/
public function some(): Response
{
return new Response();
}
}

?>
-----
<?php

namespace Rector\Core\Tests\Issues\AutoImport\Fixture\DocBlock;

use Symfony\Component\Routing\Annotation\Route;
class TwoRoutesAfterGeneric
{
/**
* @OA\Property(
* type="array",
* @OA\Items(ref=@Model(type=TestItem::class))
* )
* @Route("/first", methods={"GET"})
* @Route("/second", methods={"GET"})
*/
public function some(): Response
{
return new Response();
}
}

?>

0 comments on commit c023cba

Please sign in to comment.