diff --git a/.php_cs.dist b/.php_cs.dist index 9bff4e5c..8c7bcc22 100644 --- a/.php_cs.dist +++ b/.php_cs.dist @@ -8,7 +8,14 @@ $finder = PhpCsFixer\Finder::create() return PhpCsFixer\Config::create() ->setRules([ - '@Symfony' => true, - 'array_syntax' => ['syntax' => 'short'], + '@Symfony' => true, + 'array_syntax' => ['syntax' => 'short'], + 'visibility_required' => [ + 'elements' => [ + 'const', + 'method', + 'property', + ], + ], ]) ->setFinder($finder);