Skip to content

Issues when inserting namespace with nested autoloading rules #712

@greg0ire

Description

@greg0ire

Given the following autoload rule:

   "autoload": {
        "psr-4": {
            "App\\": "src/",
            "AppBundle\\": "src/AppBundle/"
        }

And I am in file src/AppBundle/Foo.php
And I create a new class
I should obtain namespace AppBundle

I actually obtain this:

<?php

declare(strict_types=1);

namespace App\AppBundle; // wrong namespace

final class Foo
{
}

I have similar issues when importing use statements.

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