Skip to content

Commit 0774f4a

Browse files
authored
Replace deprecated PHP-CS-Fixer rule (#33)
* `new_with_braces` is deprecated in favor of `new_with_parentheses` * require more recent version of php-cs-fixer; `new_with_parentheses` was introduced in v3.32.0
1 parent ce3e54d commit 0774f4a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"require": {
1717
"php": "^8.1",
1818
"dealerdirect/phpcodesniffer-composer-installer": "^0.5 || ^0.6 || ^0.7 || ^1.0",
19-
"friendsofphp/php-cs-fixer": "^3.22",
19+
"friendsofphp/php-cs-fixer": "^3.32",
2020
"slevomat/coding-standard": "^8.4",
2121
"squizlabs/php_codesniffer": "^3.6.1",
2222
"webimpress/coding-standard": "^1.1"

php-cs-fixer-rules.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
'scope' => 'namespaced',
3535
'strict' => true,
3636
],
37-
'new_with_braces' => [
37+
'new_with_parentheses' => [
3838
'named_class' => true,
3939
'anonymous_class' => false,
4040
],

0 commit comments

Comments
 (0)