Skip to content

Commit 360de2a

Browse files
authored
Merge pull request #22 from acsiomatic/php-cs-fixer-3
Bump PHP-CS-Fixer to 3
2 parents 7e8deb3 + 68e908a commit 360de2a

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/coding-standards.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
uses: shivammathur/setup-php@v2
2828
with:
2929
php-version: 7.4
30-
tools: php-cs-fixer:2, cs2pr
30+
tools: php-cs-fixer:3, cs2pr
3131

3232
- name: Create var/ directory
3333
run: mkdir var

.php-cs-fixer.dist.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
->setRules([
1414
'@Symfony' => true,
1515
'@Symfony:risky' => true,
16-
'array_syntax' => ['syntax' => 'short'],
1716
'method_chaining_indentation' => true,
17+
'ordered_class_elements' => true,
1818
'php_unit_test_case_static_method_calls' => true,
1919
'static_lambda' => true,
20-
'ordered_class_elements' => true,
20+
'visibility_required' => ['elements' => ['property', 'method']], // PHP 7.0 compatibility
2121
])
2222
->setFinder($finder)
2323
;

0 commit comments

Comments
 (0)