From 2bbaf8f0efc123f4a453208f326429201c7fd1c5 Mon Sep 17 00:00:00 2001 From: Maxime Huran Date: Mon, 11 Dec 2023 11:54:42 +0100 Subject: [PATCH] Rename deprecated PHP CS fixer rules --- .php-cs-fixer.dist.php | 8 ++++---- .../MonsieurBizSyliusAdvancedPromotionExtension.php | 3 +++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php index 72eb53f..5118e23 100644 --- a/.php-cs-fixer.dist.php +++ b/.php-cs-fixer.dist.php @@ -58,7 +58,7 @@ 'combine_consecutive_issets' => true, 'combine_consecutive_unsets' => true, 'comment_to_phpdoc' => true, - 'compact_nullable_typehint' => true, + 'compact_nullable_type_declaration' => true, 'concat_space' => [ 'spacing' => 'one', ], @@ -118,7 +118,7 @@ ], 'native_constant_invocation' => true, 'native_function_casing' => true, - 'new_with_braces' => true, + 'new_with_parentheses' => true, 'no_alias_functions' => true, 'no_alternative_syntax' => true, 'no_blank_lines_after_class_opening' => true, @@ -157,14 +157,14 @@ 'no_short_bool_cast' => true, 'no_spaces_after_function_name' => true, 'no_spaces_around_offset' => true, - 'no_spaces_inside_parenthesis' => true, + 'spaces_inside_parentheses' => true, 'no_superfluous_elseif' => true, 'no_superfluous_phpdoc_tags' => [ 'allow_mixed' => true, ], 'no_unset_cast' => true, 'no_unneeded_control_parentheses' => true, - 'no_unneeded_curly_braces' => true, + 'no_unneeded_braces' => true, 'no_unneeded_final_method' => true, 'no_unset_on_property' => true, 'no_unused_imports' => true, diff --git a/src/DependencyInjection/MonsieurBizSyliusAdvancedPromotionExtension.php b/src/DependencyInjection/MonsieurBizSyliusAdvancedPromotionExtension.php index 27c0dbc..3ee7242 100644 --- a/src/DependencyInjection/MonsieurBizSyliusAdvancedPromotionExtension.php +++ b/src/DependencyInjection/MonsieurBizSyliusAdvancedPromotionExtension.php @@ -18,6 +18,9 @@ use Symfony\Component\DependencyInjection\Extension\PrependExtensionInterface; use Symfony\Component\DependencyInjection\Loader\YamlFileLoader; +/** + * @SuppressWarnings(PHPMD.LongClassName) + */ final class MonsieurBizSyliusAdvancedPromotionExtension extends Extension implements PrependExtensionInterface { use PrependDoctrineMigrationsTrait;