-
-
Notifications
You must be signed in to change notification settings - Fork 344
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AutoImport] Handle multiple @\ after GenericTagValueNode
- Loading branch information
1 parent
72c0216
commit c023cba
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
44 changes: 44 additions & 0 deletions
44
tests/Issues/AutoImport/Fixture/DocBlock/two_routes_after_generic.php.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); | ||
} | ||
} | ||
|
||
?> |