A Rule set for PHP-CS-Fixer mainly targeting PHP 7.1 or higher. See Rules.php for the rules detail.
$ composer require --dev suin/php-cs-fixer-rules
Create .php_cs.dist in your project:
<?php
return PhpCsFixer\Config::create()
->setRiskyAllowed(true)
->setRules(Suin\PhpCsFixer\Rules::create([
// If you want to overwrite default rules
// add rules here.
'declare_strict_types' => false,
]))
->setFinder(PhpCsFixer\Finder::create()
->exclude('vendor')
->in(__DIR__)
);
Please see CHANGELOG for more details.
Send issue or pull-request to main repository.