How to reproduce:
command:
vendor/bin/swiss-knife namespace-to-psr-4 src --namespace-root "App\\"
run in symfony project (6.3) on src directory with following structure
src
Controller/
Entity/
Repository/
Kernel.php
Fixer works flawlessly for every file inside directories :=)
Unfortunately files in scan directory root are getting App\ namespace with additional backslash.
declare(strict_types=1);
namespace App\;
use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait;
use Symfony\Component\HttpKernel\Kernel as BaseKernel;
class Kernel extends BaseKernel
{
use MicroKernelTrait;
}
after running swiss-knife and then paraller-lint linter for example, i got this error:
Hi, two things related to swiss-knife
How to reproduce: command:
vendor/bin/swiss-knife namespace-to-psr-4 src --namespace-root "App\\"
run in symfony project (6.3) on src directory with following structure
Fixer works flawlessly for every file inside directories :=) Unfortunately files in scan directory root are getting App\ namespace with additional backslash.
after running swiss-knife and then paraller-lint linter for example, i got this error:
Also in second run You will get error: