diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2807e2263..8ff1cad46 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -278,4 +278,4 @@ jobs: tools: php-cs-fixer - name: Run PHP-CS-Fixer - run: php-cs-fixer fix --dry-run --diff --diff-format=udiff + run: php-cs-fixer fix --dry-run --diff diff --git a/.gitignore b/.gitignore index 0408f9670..2819313a1 100644 --- a/.gitignore +++ b/.gitignore @@ -47,3 +47,4 @@ Documentation/* # php-cs-fixer /.php_cs.cache +/.php-cs-fixer.cache diff --git a/.php_cs b/.php-cs-fixer.php similarity index 97% rename from .php_cs rename to .php-cs-fixer.php index 48c5278b0..d2ea8dfa2 100644 --- a/.php_cs +++ b/.php-cs-fixer.php @@ -9,7 +9,7 @@ $finder = PhpCsFixer\Finder::create() ->notContains('#ifndef COMPILE') //preprocessor will break if these are changed ->notName('PocketMine.php'); -return PhpCsFixer\Config::create() +return (new PhpCsFixer\Config) ->setRiskyAllowed(true) ->setRules([ 'align_multiline_comment' => [