|
@@ -13,14 +13,14 @@ declare(strict_types=1);
|
|
|
*/
|
|
|
|
|
|
$header = <<<'EOF'
|
|
|
-This file is part of PHP CS Fixer.
|
|
|
+ This file is part of PHP CS Fixer.
|
|
|
|
|
|
-(c) Fabien Potencier <fabien@symfony.com>
|
|
|
- Dariusz Rumiński <dariusz.ruminski@gmail.com>
|
|
|
+ (c) Fabien Potencier <fabien@symfony.com>
|
|
|
+ Dariusz Rumiński <dariusz.ruminski@gmail.com>
|
|
|
|
|
|
-This source file is subject to the MIT license that is bundled
|
|
|
-with this source code in the file LICENSE.
|
|
|
-EOF;
|
|
|
+ This source file is subject to the MIT license that is bundled
|
|
|
+ with this source code in the file LICENSE.
|
|
|
+ EOF;
|
|
|
|
|
|
$finder = PhpCsFixer\Finder::create()
|
|
|
->ignoreDotFiles(false)
|
|
@@ -37,14 +37,16 @@ $config = new PhpCsFixer\Config();
|
|
|
$config
|
|
|
->setRiskyAllowed(true)
|
|
|
->setRules([
|
|
|
- '@PHP71Migration' => true,
|
|
|
- '@PHP71Migration:risky' => true,
|
|
|
+ '@PHP74Migration' => true,
|
|
|
+ '@PHP74Migration:risky' => true,
|
|
|
'@PHPUnit75Migration:risky' => true,
|
|
|
'@PhpCsFixer' => true,
|
|
|
'@PhpCsFixer:risky' => true,
|
|
|
'general_phpdoc_annotation_remove' => ['annotations' => ['expectedDeprecation']], // one should use PHPUnit built-in method instead
|
|
|
'header_comment' => ['header' => $header],
|
|
|
+ 'heredoc_indentation' => false, // TODO switch on when # of PR's is lower
|
|
|
'modernize_strpos' => true, // needs PHP 8+ or polyfill
|
|
|
+ 'use_arrow_functions' => false, // TODO switch on when # of PR's is lower
|
|
|
])
|
|
|
->setFinder($finder)
|
|
|
;
|