Skip to content

Commit d150d95

Browse files
committed
style: add concat_space and nullable_type_declaration
Ref #29 Ref #30 Signed-off-by: Daniel Kesselberg <[email protected]>
1 parent 67da46e commit d150d95

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ All notable changes to this project will be documented in this file.
88
* `MultilinePromotedPropertiesFixer`: Break promoted properties on multiple lines
99
* `ErickSkrauch/blank_line_before_return`: Add a blank line before each return
1010
* `ErickSkrauch/line_break_after_statements`: Add a blank line after all control statements
11+
* `concat_space`: Concatenation should be spaced
12+
* `nullable_type_declaration`: Changes `DateTimeInterface|null` to `?DateTimeInterface`
1113

1214
## 1.2.3 - 2024-08-23
1315
### Changed

src/Config.php

+2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public function getRules() : array {
2828
'blank_line_after_namespace' => true,
2929
'blank_line_after_opening_tag' => true,
3030
'cast_spaces' => ['space' => 'none'],
31+
'concat_space' => ['spacing' => 'one'],
3132
'curly_braces_position' => [
3233
'classes_opening_brace' => 'same_line',
3334
'functions_opening_brace' => 'same_line',
@@ -56,6 +57,7 @@ public function getRules() : array {
5657
'no_trailing_whitespace_in_comment' => true,
5758
'no_unused_imports' => true,
5859
'nullable_type_declaration_for_default_null_value' => true,
60+
'nullable_type_declaration' => ['syntax' => 'question_mark'],
5961
'ordered_imports' => [
6062
'imports_order' => ['class', 'function', 'const'],
6163
'sort_algorithm' => 'alpha'

0 commit comments

Comments
 (0)