Hello,
I'm using php-cs-fixer in Sublime and after saving a controller file the first letter from namespace is lowercase. From namespace App\Http\Controllers to namespace app\Http\Controllers;
I found a solution to add a new line "app\": "app/" inside composer.json:
"autoload": {
"classmap": [
"database"
],
"psr-4": {
"App\\": "app/",
"app\\": "app/"
}
},
It is a best practice to use this solution?
Regards,
Radu
NOT a bug.
You MUST disable the psr0 fixer since you are not using psr0.
"app\": "app/"
That is definitely wrong.
How can I disable the psr0 fixer?
Right now I have:
"php_cs_fixer_additional_args": {
"--level": "psr2",
},
Many thanks
I found a solution using a config file for Laravel.
https://gist.github.com/jatubio/dfbebf73ea79f9f72e02
Thank you.
Most helpful comment
I found a solution using a config file for Laravel.
https://gist.github.com/jatubio/dfbebf73ea79f9f72e02
Thank you.