diff --git a/CHANGELOG.md b/CHANGELOG.md index 454d89b..c0ca863 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,8 @@ All notable changes to this project will be documented in this file. * `MultilinePromotedPropertiesFixer`: Break promoted properties on multiple lines * `ErickSkrauch/blank_line_before_return`: Add a blank line before each return * `ErickSkrauch/line_break_after_statements`: Add a blank line after all control statements +* `concat_space`: Concatenation should be spaced +* `nullable_type_declaration`: Changes `DateTimeInterface|null` to `?DateTimeInterface` ## 1.2.3 - 2024-08-23 ### Changed diff --git a/src/Config.php b/src/Config.php index 6895b89..9bf8947 100644 --- a/src/Config.php +++ b/src/Config.php @@ -28,6 +28,7 @@ public function getRules() : array { 'blank_line_after_namespace' => true, 'blank_line_after_opening_tag' => true, 'cast_spaces' => ['space' => 'none'], + 'concat_space' => ['spacing' => 'one'], 'curly_braces_position' => [ 'classes_opening_brace' => 'same_line', 'functions_opening_brace' => 'same_line', @@ -56,6 +57,7 @@ public function getRules() : array { 'no_trailing_whitespace_in_comment' => true, 'no_unused_imports' => true, 'nullable_type_declaration_for_default_null_value' => true, + 'nullable_type_declaration' => ['syntax' => 'question_mark'], 'ordered_imports' => [ 'imports_order' => ['class', 'function', 'const'], 'sort_algorithm' => 'alpha'