Skip to content

Commit af35f0f

Browse files
committed
Add PSR12 ruleset checking to phpcsfixer but overwrite 'visibility_required' setting since we still support PHP 7.0 for now.
1 parent 9477b8c commit af35f0f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.php_cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ $finder = PhpCsFixer\Finder::create()
88
return PhpCsFixer\Config::create()
99
->setRules([
1010
'@Symfony' => true,
11+
'@PSR12' => true,
1112
'array_syntax' => ['syntax' => 'short'],
1213
'binary_operator_spaces' => ['default' => null, 'operators' => ['=>' => 'align']],
1314
'concat_space' => ['spacing' => 'one'],
@@ -26,6 +27,7 @@ return PhpCsFixer\Config::create()
2627
'phpdoc_summary' => false,
2728
'self_accessor' => true,
2829
'single_line_throw' => false,
30+
'visibility_required' => ['property', 'method'], // removed 'const' since we still support PHP 7.0 for now
2931
'yoda_style' => null,
3032
])
3133
->setFinder($finder)

0 commit comments

Comments
 (0)