Skip to content

Commit

Permalink
style: add concat_space and nullable_type_declaration
Browse files Browse the repository at this point in the history
Ref #29
Ref #30

Signed-off-by: Daniel Kesselberg <[email protected]>
  • Loading branch information
kesselb committed Sep 18, 2024
1 parent 67da46e commit d150d95
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions src/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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'
Expand Down

0 comments on commit d150d95

Please sign in to comment.