Skip to content

Commit bb0e80d

Browse files
committed
Use no_trailing_comma_in_singleline
- Instead of deprecated `no_trailing_comma_in_list_call` and `no_trailing_comma_in_singleline_array` - clarify readme/composer.json the config is now for v3.11 and up - prepare for 2.1.0 release.
1 parent 22cab7e commit bb0e80d

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ CHANGELOG
44
[Next release](https://github.com/mfn/php-cs-fixer-config/compare/1.0.2...master)
55
--------------
66

7+
2022-09-23, 2.1.0
8+
-----------------
9+
- use `no_trailing_comma_in_singleline` instead of deprecated
10+
`no_trailing_comma_in_list_call` and `no_trailing_comma_in_singleline_array`
11+
- clarify readme/composer.json the config is now for v3.11 and up
12+
713
2021-08-16, 2.0.0
814
-----------------
915
- rename `trailing_comma_in_multiline_array` to `trailing_comma_in_multiline`

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# My opinionated php-cs-fixer config for v3
1+
# My opinionated php-cs-fixer config for v3.11 and up
22

33
Not much to say, these are my opinions.
44

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mfn/php-cs-fixer-config",
3-
"description": "My opinionated php-cs-fixer config for v3",
3+
"description": "My opinionated php-cs-fixer config for v3.11 and up",
44
"type": "library",
55
"authors": [
66
{

src/Config.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,7 @@ public static function getRules(): array
182182
'no_superfluous_phpdoc_tags' => [
183183
'allow_mixed' => true,
184184
],
185-
'no_trailing_comma_in_list_call' => true,
186-
'no_trailing_comma_in_singleline_array' => true,
185+
'no_trailing_comma_in_singleline' => true,
187186
'no_trailing_whitespace_in_comment' => true,
188187
'no_unneeded_control_parentheses' => true,
189188
'no_unneeded_curly_braces' => true,

0 commit comments

Comments
 (0)