diff --git a/CHANGELOG.md b/CHANGELOG.md index 62c2a85..735df6f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/src/Config.php b/src/Config.php index 8acf85d..11a788a 100644 --- a/src/Config.php +++ b/src/Config.php @@ -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'] ],