From a13b0c98a1b7fdd39a463207f641c1660f5874db Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Tue, 4 May 2021 22:18:18 +0100 Subject: [PATCH] Updated to PHP-CS-Fixer 3.0.0 --- .github/workflows/main.yml | 2 +- .gitignore | 1 + .php_cs => .php-cs-fixer.php | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) rename .php_cs => .php-cs-fixer.php (97%) 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' => [