Skip to content

Issues when inserting namespace with nested autoloading rules #712

Closed

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.

Activity

  1. dantleech commented on Jan 16, 2019

    @dantleech
    Collaborator
  2. added a commit that references this issue on Jan 16, 2019
  3. added 2 commits that reference this issue on Jan 17, 2019
    286a939
    1115980
  4. dantleech commented on Jan 17, 2019

    @dantleech
    Collaborator

    Develop is updated!

  5. greg0ire commented on Jan 17, 2019

    @greg0ire
    ContributorAuthor

    Thank you!

  6. added a commit that references this issue on Mar 3, 2019
    632d0bb
  7. added a commit that references this issue on May 18, 2019
    e8f09c2
  8. added a commit that references this issue on Aug 25, 2019
    2d2d6bc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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