Skip to content

Traits not being handled properly #111

@jakubmikita

Description

@jakubmikita

Trait:

namespace Package\Section;

use Package\Traits

class Example {

	use Traits\Common;

}

Gets replaced with:

namespace Imposter\Prefix\Package\Section;

use Imposter\Prefix\Package\Traits

class Example {

	use Imposter\Prefix\Traits\Common;

}

We could always backslashit: use \Package\Traits\Common; but then it becomes use Imposter\Prefix\\Package\Traits\Common

Is there any workaround? It might be related to #58 but this doesn't seem to apply to traits.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions