-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[psr_autoloading] Configuration must be an array and may not be empty. #5537
Comments
so, the config can be |
This is also happening with the |
Question - why you are setting a null value? Configuration was never designed to use
I will be gentle here and replace hard validation with soft warning. To be hard validation again on 3.0 line |
Hey! thx for getting back to me.
I am not the person who added this line of config. I am just the one reporting a BC break ;-). I don't know what the intension of the author initially was or where he got inspiration from for this line of config.
I guess its a mix of 'it just worked' and 'while skimming the docs it seemed it would be a supported option'.
thx, that sounds like a great move from your side. really apreciate that. |
I am just testing this config settings.. using we want to effectivly disable the |
to disable the rule, you need to |
According to the documentation, it is, at least for
Like @clxmstaab I'm using a library that is doing this; that's why I reported #5538: if (version_compare(\PhpCsFixer\Console\Application::VERSION, '2.6.0', '>=')) {
$rules['yoda_style'] = null;
} Edit: removed the reference for |
Bug report
updating from 2.18.2 to 2.18.3 we get the error when running
php-cs-fixer fix
this feels like a bug, because the docs mention this setting can be null or string
https://cs.symfony.com/doc/rules/basic/psr_autoloading.html
Code snippet that reproduces the problem
config
The text was updated successfully, but these errors were encountered: