There's two different versions, one for general use & one for use on projects that use static analysis.
composer require --dev signpostmarv/php-cs-fixer-config
- create your
.php_cs
or.php_cs.dist
file and enter the corresponding code for the config you wish to use
return \SignpostMarv\CS\Config::createWithPaths(...[
__FILE__,
(__DIR__ . '/src/'),
(__DIR__ . '/tests/'),
])
return \SignpostMarv\CS\ConfigUsedWithoutNullableReturn::createWithPaths(...[
__FILE__,
(__DIR__ . '/src/'),
(__DIR__ . '/tests/'),
])
return \SignpostMarv\CS\ConfigUsedWithStaticAnalysis::createWithPaths(...[
__FILE__,
(__DIR__ . '/src/'),
(__DIR__ . '/tests/'),
])
return \SignpostMarv\CS\ConfigUsedWithStaticAnalysisWithoutNullableReturn::createWithPaths(...[
__FILE__,
(__DIR__ . '/src/'),
(__DIR__ . '/tests/'),
])
- Extend
SignpostMarv\CS\Config
- Either
- override the
SignpostMarv\CS\Config::DEFAULT_RULES
array const - override the
SignpostMarv\CS\Config::RuntimeResolveRules()
static method as in ConfigUsedWithStaticAnalysis
- override the