From fa1f4564d625dbf1fea1c6a4cb2bafa687b7bd98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= Date: Tue, 10 Mar 2026 14:28:00 +0100 Subject: [PATCH] chore: Move from deprecated visibility_required to modifier_keywords MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- src/Config.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Config.php b/src/Config.php index beb5854..f942ff8 100644 --- a/src/Config.php +++ b/src/Config.php @@ -47,6 +47,9 @@ public function getRules() : array { 'on_multiline' => 'ignore', ], 'method_chaining_indentation' => true, + 'modifier_keywords' => [ + 'elements' => ['property', 'method', 'const'] + ], 'no_closing_tag' => true, 'no_leading_import_slash' => true, 'no_short_bool_cast' => true, @@ -78,9 +81,6 @@ public function getRules() : array { 'trailing_comma_in_multiline' => ['elements' => ['parameters']], 'types_spaces' => ['space' => 'none', 'space_multiple_catch' => 'none'], 'type_declaration_spaces' => ['elements' => ['function', 'property']], - 'visibility_required' => [ - 'elements' => ['property', 'method', 'const'] - ], 'yoda_style' => ['equal' => false, 'identical' => false, 'less_and_greater' => false], PhpCsFixerCustomFixers\Fixer\MultilinePromotedPropertiesFixer::name() => true, ];