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

Partial namespace support #7

Open
audriusnaslenas opened this issue Aug 28, 2024 · 0 comments
Open

Partial namespace support #7

audriusnaslenas opened this issue Aug 28, 2024 · 0 comments

Comments

@audriusnaslenas
Copy link

The plugin doesn't recognises partial namespaces. I have the setting " Clean up unused imports" turned on, so in this case

<?php

namespace PN\Entity;

use Doctrine\ORM\Mapping as ORM;

#[ORM\Entity]
#[ORM\Table(name: 'test')]
class TestEntity

the plugin removes the line use Doctrine\ORM\Mapping as ORM; and so breaks the code.

Full namespace works ok:

<?php

namespace PN\Entity;

use Doctrine\ORM\Mapping\Entity;
use Doctrine\ORM\Mapping\Table;

#[Entity]
#[Table(name: 'test')]
class TestEntity
{
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant