Skip to content

Commit

Permalink
Replace deprecated PHP-CS-Fixer rule (#33)
Browse files Browse the repository at this point in the history
* `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
  • Loading branch information
rieschl authored Feb 2, 2024
1 parent ce3e54d commit 0774f4a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"require": {
"php": "^8.1",
"dealerdirect/phpcodesniffer-composer-installer": "^0.5 || ^0.6 || ^0.7 || ^1.0",
"friendsofphp/php-cs-fixer": "^3.22",
"friendsofphp/php-cs-fixer": "^3.32",
"slevomat/coding-standard": "^8.4",
"squizlabs/php_codesniffer": "^3.6.1",
"webimpress/coding-standard": "^1.1"
Expand Down
2 changes: 1 addition & 1 deletion php-cs-fixer-rules.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
'scope' => 'namespaced',
'strict' => true,
],
'new_with_braces' => [
'new_with_parentheses' => [
'named_class' => true,
'anonymous_class' => false,
],
Expand Down

0 comments on commit 0774f4a

Please sign in to comment.