Skip to content

Commit

Permalink
Use new PHP-CS-Fixer with parallelization (#1964)
Browse files Browse the repository at this point in the history
  • Loading branch information
maks-rafalko committed May 16, 2024
1 parent 18a92e9 commit 154822a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@

use PhpCsFixer\Config;
use PhpCsFixer\Finder;
use PhpCsFixer\Runner\Parallel\ParallelConfigFactory;

$header = \trim(\sprintf(
'This code is licensed under the BSD 3-Clause License.%s',
Expand Down Expand Up @@ -72,6 +73,7 @@
;

return (new Config())
->setParallelConfig(ParallelConfigFactory::detect())
->setRiskyAllowed(true)
->setRules([
'@PHP71Migration' => true,
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ BOX=./.tools/box
BOX_URL="https://github.com/humbug/box/releases/download/4.5.1/box.phar"

PHP_CS_FIXER=./.tools/php-cs-fixer
PHP_CS_FIXER_URL="https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v3.52.0/php-cs-fixer.phar"
PHP_CS_FIXER_URL="https://github.com/FriendsOfPHP/PHP-CS-Fixer/releases/download/v3.57.1/php-cs-fixer.phar"
PHP_CS_FIXER_CACHE=.php_cs.cache

PHPSTAN=./vendor/bin/phpstan
Expand Down

0 comments on commit 154822a

Please sign in to comment.