Skip to content

[Bug] ImportFullyQualifiedNamesRector does not fix all FQCNs #1421

@mxr576

Description

@mxr576

Because ImportFullyQualifiedNamesRector rector only checks files that have namespaced defined it it does not fix FQCNs in a procedural code like this.

<?php

function foo() {
    $baz = \Foo\Bar::Baz;
}
-----
<?php

use Foo\Bar;

function foo() {
    $baz = Bar::BAZ;
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions