diff --git a/.github/workflows/coding-standards.yaml b/.github/workflows/coding-standards.yaml index 8ff515a..3a707fd 100644 --- a/.github/workflows/coding-standards.yaml +++ b/.github/workflows/coding-standards.yaml @@ -27,7 +27,7 @@ jobs: uses: shivammathur/setup-php@v2 with: php-version: 7.4 - tools: php-cs-fixer:2, cs2pr + tools: php-cs-fixer:3, cs2pr - name: Create var/ directory run: mkdir var diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php index bde9719..01e4587 100644 --- a/.php-cs-fixer.dist.php +++ b/.php-cs-fixer.dist.php @@ -13,11 +13,11 @@ ->setRules([ '@Symfony' => true, '@Symfony:risky' => true, - 'array_syntax' => ['syntax' => 'short'], 'method_chaining_indentation' => true, + 'ordered_class_elements' => true, 'php_unit_test_case_static_method_calls' => true, 'static_lambda' => true, - 'ordered_class_elements' => true, + 'visibility_required' => ['elements' => ['property', 'method']], // PHP 7.0 compatibility ]) ->setFinder($finder) ;