Skip to content

Commit

Permalink
style: add type_declaration_spaces
Browse files Browse the repository at this point in the history
To ensure a single between type hint and varialbe name

Signed-off-by: Daniel Kesselberg <[email protected]>
  • Loading branch information
kesselb committed Oct 14, 2024
1 parent e88acb0 commit a5b23c5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Changelog
All notable changes to this project will be documented in this file.

## 1.3.2 - 2024-10-14
### Added
* `type_declaration_spaces`: A single space between typehint and variable name

## 1.3.1 - 2024-09-19
### Fixed
* Removed misbehaving `ErickSkrauch/blank_line_before_return` and `ErickSkrauch/line_break_after_statements` rules
Expand Down
1 change: 1 addition & 0 deletions src/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ public function getRules() : array {
'switch_case_space' => true,
'trailing_comma_in_multiline' => ['elements' => ['parameters']],
'types_spaces' => ['space' => 'none', 'space_multiple_catch' => 'none'],
'type_declaration_spaces' => ['elements' => ['function', 'property']],
'visibility_required' => [
'elements' => ['property', 'method', 'const']
],
Expand Down

0 comments on commit a5b23c5

Please sign in to comment.