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

Cannot declare class [...] because the name is already in use #7738

Closed
thyseus opened this issue Jan 15, 2024 · 1 comment
Closed

Cannot declare class [...] because the name is already in use #7738

thyseus opened this issue Jan 15, 2024 · 1 comment
Labels

Comments

@thyseus
Copy link

thyseus commented Jan 15, 2024

Bug report

Given the following Code:

class PostResource extends \LaraZeus\Sky\Filament\Resources\PostResource
{

php-cs-fixer generates:

use LaraZeus\Sky\Filament\Resources\PostResource;

class PostResource extends PostResource
{

which, correctly, gives this error message:

Cannot declare class App\Filament\Resources\PostResource because the name is already in use

It was working in a prior php-cs-fixer version of December 2023, it has to be a recent update that broke the behavior.

Thanks a lot !

@Wirone
Copy link
Member

Wirone commented Jan 15, 2024

Fixed in #7679, will be part of upcoming release.

@Wirone Wirone closed this as completed Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants