diff --git a/webservice/.php-cs-fixer.dist.php b/webservice/.php-cs-fixer.dist.php index 102ef17..ac04fd5 100644 --- a/webservice/.php-cs-fixer.dist.php +++ b/webservice/.php-cs-fixer.dist.php @@ -13,14 +13,6 @@ ->setRules([ '@Symfony' => true, '@Symfony:risky' => true, - 'array_syntax' => ['syntax' => 'short'], // part of PERCS2.0 included in sf - 'no_null_property_initialization' => true, // part of Sf coding standard - 'nullable_type_declaration_for_default_null_value' => true, // part of Sf coding standard - 'phpdoc_order' => true, // part of Sf coding standard - 'phpdoc_types_order' => [ // part of Sf coding standard - 'null_adjustment' => 'always_last', - 'sort_algorithm' => 'none', - ], 'combine_consecutive_issets' => true, 'combine_consecutive_unsets' => true, 'native_constant_invocation' => [ @@ -33,19 +25,12 @@ 'comment_text' => 'Intentional: No break', ], 'non_printable_character' => false, // As of PHP 7, they can be masked in strings (Not included in @Symfony) - 'protected_to_private' => false, // Not included in @Symfony - 'phpdoc_no_empty_return' => false, // Not included in@Symfony - 'ordered_class_elements' => false, // Not included in @Symfony - 'ordered_imports' => [ - 'imports_order' => ['class', 'const', 'function'], // differs from @Symfony - ], 'global_namespace_import' => [ // differs from Symfony Coding Standard 'import_classes' => true, 'import_constants' => true, 'import_functions' => true, ], - 'ordered_traits' => false, // Not included in @Symfony - 'phpdoc_to_comment' => false, // differs from @Symfony + 'phpdoc_to_comment' => false, // differs from @Symfony, needed for higher PHPStan / lower PSalm levels 'pow_to_exponentiation' => true, 'declare_strict_types' => true, ]) diff --git a/webservice/config/bundles.php b/webservice/config/bundles.php index 87b5d46..012ce29 100644 --- a/webservice/config/bundles.php +++ b/webservice/config/bundles.php @@ -1,5 +1,7 @@ ['all' => true], Symfony\Bundle\TwigBundle\TwigBundle::class => ['all' => true], diff --git a/webservice/config/preload.php b/webservice/config/preload.php index 5ebcdb2..7cbe578 100644 --- a/webservice/config/preload.php +++ b/webservice/config/preload.php @@ -1,5 +1,7 @@