Skip to content

Commit 9c719c4

Browse files
Merge pull request #37 from nextcloud/feat/type_declaration_spaces
style: add type_declaration_spaces
2 parents e88acb0 + a5b23c5 commit 9c719c4

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
# Changelog
22
All notable changes to this project will be documented in this file.
33

4+
## 1.3.2 - 2024-10-14
5+
### Added
6+
* `type_declaration_spaces`: A single space between typehint and variable name
7+
48
## 1.3.1 - 2024-09-19
59
### Fixed
610
* Removed misbehaving `ErickSkrauch/blank_line_before_return` and `ErickSkrauch/line_break_after_statements` rules

src/Config.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ public function getRules() : array {
7373
'switch_case_space' => true,
7474
'trailing_comma_in_multiline' => ['elements' => ['parameters']],
7575
'types_spaces' => ['space' => 'none', 'space_multiple_catch' => 'none'],
76+
'type_declaration_spaces' => ['elements' => ['function', 'property']],
7677
'visibility_required' => [
7778
'elements' => ['property', 'method', 'const']
7879
],

0 commit comments

Comments
 (0)