Closed mbrodala closed 7 months ago
What kind of change happened in your use-case that you did not want to happen?
For projects, the config should be set to "src/" (or wherever your PHP files are located), and for extensions the config/system/settings file is usually not available.
The change we saw was minimal, an additional newline between <?php
and return ...
. Still, this would be dropped the next time the settings.php
is updated via TYPO3 BE, requiring another CS fix.
We do not use src/
in TYPO3 distributions yet but packages/
. Aside from that we use __DIR__
to process the whole project so maybe that's the root cause. Sure, with the default __DIR__ . 'src/
one would not get suggestions to fix something in config/
.
src/
or packages/
would be highly recommended, otherwise php-cs-fixer might go over your vendor folder :)
We usually use a list of directories which should not be processed instead. This way we can be sure that newly added files are covered automatically.
In fact, this very package does that:
So we're fine. :-)
The config/system/settings.php is commonly updated through the TYPO3 backend and exported accordingly. Thus coding style standards can and should not be applied here.