Skip to content

ReferenceViaFullyQualifiedName fix introduces error #1230

@bavo-isaac

Description

@bavo-isaac

hi,

I noticed the following file is not correctly handled by autofixing the violation
Namespaces.ReferenceUsedNamesOnly.ReferenceViaFullyQualifiedName and actually breaks the application.

namespace App;

class Application extends \Illuminate\Foundation\Application
{
}

Expected result is that the file can not be fixed automaticly, "Application" should be imported using an alias, I don't expect the fixer to do this for me. Instead the fully qualified reference is removed nothing is import.

namespace App;

class Application extends Application
{
}

Keep up the great work!

Thx

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions