Skip to content

Commit 251ebc5

Browse files
committed
Fix fn spacing rule, upgrade to the latest PHP-CS-Fixer and add a new rule
1 parent 2db4af0 commit 251ebc5

File tree

4 files changed

+16
-13
lines changed

4 files changed

+16
-13
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
4545
- `semicolon_after_instruction` fixer.
4646
- `types_spaces` fixer.
4747
- `no_trailing_comma_in_singleline` fixer.
48+
- `no_useless_concat_operator` fixer.
4849

4950
### Changed
5051
- `friendsofphp/php-cs-fixer` version bumped to `^3`.

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"homepage": "https://github.com/elyby/php-code-style",
2121
"require": {
2222
"php": "^7.4 || ^8.0",
23-
"friendsofphp/php-cs-fixer": "^3.11"
23+
"friendsofphp/php-cs-fixer": "^3.13"
2424
},
2525
"require-dev": {
2626
"ergebnis/composer-normalize": "^2.28",

composer.lock

+12-12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Rules.php

+2
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ public static function create(array $overwrittenRules = []): array {
110110
'combine_nested_dirname' => true,
111111
'function_declaration' => [
112112
'closure_function_spacing' => 'none',
113+
'closure_fn_spacing' => 'none',
113114
],
114115
'function_typehint_space' => true,
115116
'implode_call' => true,
@@ -153,6 +154,7 @@ public static function create(array $overwrittenRules = []): array {
153154
'new_with_braces' => [
154155
'anonymous_class' => false,
155156
],
157+
'no_useless_concat_operator' => true,
156158
'no_useless_nullsafe_operator' => true,
157159
'object_operator_without_whitespace' => true,
158160
'operator_linebreak' => true,

0 commit comments

Comments
 (0)