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.