signpostmarv / php-cs-fixer-config
PHP-CS-Fixer Config
Package info
github.com/SignpostMarv/PHP-CS-Fixer-Config
pkg:composer/signpostmarv/php-cs-fixer-config
v0.24.0
2024-01-26 10:52 UTC
Requires
- php: ^7.4|^8.0
- friendsofphp/php-cs-fixer: ^3.48
Requires (Dev)
- maglnet/composer-require-checker: ^3.8
- povils/phpmnd: ^3.4
- roave/security-advisories: dev-latest
- sebastian/phpcpd: ^6.0
- vimeo/psalm: ^5.20
This package is auto-updated.
Last update: 2026-05-26 16:06:53 UTC
README
There's two different versions, one for general use & one for use on projects that use static analysis.
Installation & Usage
composer require --dev signpostmarv/php-cs-fixer-config- create your
.php_csor.php_cs.distfile and enter the corresponding code for the config you wish to use
General Use
return \SignpostMarv\CS\Config::createWithPaths(...[ __FILE__, (__DIR__ . '/src/'), (__DIR__ . '/tests/'), ])
Use without PHP 7.1 Nullable return types
return \SignpostMarv\CS\ConfigUsedWithoutNullableReturn::createWithPaths(...[ __FILE__, (__DIR__ . '/src/'), (__DIR__ . '/tests/'), ])
With Static Analysis
return \SignpostMarv\CS\ConfigUsedWithStaticAnalysis::createWithPaths(...[ __FILE__, (__DIR__ . '/src/'), (__DIR__ . '/tests/'), ])
Use without PHP 7.1 Nullable return types
return \SignpostMarv\CS\ConfigUsedWithStaticAnalysisWithoutNullableReturn::createWithPaths(...[ __FILE__, (__DIR__ . '/src/'), (__DIR__ . '/tests/'), ])
Customising Rules
- Extend
SignpostMarv\CS\Config - Either
- override the
SignpostMarv\CS\Config::DEFAULT_RULESarray const - override the
SignpostMarv\CS\Config::RuntimeResolveRules()static method as in ConfigUsedWithStaticAnalysis
- override the