Skip to content

Commit

Permalink
Add fixture test for Doctrine annotation to attribute auto import FQC…
Browse files Browse the repository at this point in the history
…N (with @\ prefix) (#6469)

* Add fixture test for Doctrine annotation to attribute FQCN with \ prefix

* Add fixture test for Doctrine annotation to attribute FQCN with \ prefix
  • Loading branch information
samsonasik authored Nov 22, 2024
1 parent a65f3a2 commit 1c0260f
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions tests/Issues/AutoImport/Fixture/DocBlock/doctrine_fqcn.php.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php

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

/**
* @\Doctrine\ORM\Mapping\Entity(repositoryClass="App\Some\Class")
*/
class DoctrineFQCN
{
}

?>
-----
<?php

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

use Doctrine\ORM\Mapping\Entity;

#[Entity(repositoryClass: 'App\Some\Class')]
class DoctrineFQCN
{
}

?>

0 comments on commit 1c0260f

Please sign in to comment.