From 0774f4a4556cef32f5b6f79802eb71af72848c6b Mon Sep 17 00:00:00 2001 From: Thomas Rieschl Date: Fri, 2 Feb 2024 20:53:27 +0100 Subject: [PATCH] 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 --- composer.json | 2 +- php-cs-fixer-rules.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 88fc245..499277d 100644 --- a/composer.json +++ b/composer.json @@ -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" diff --git a/php-cs-fixer-rules.php b/php-cs-fixer-rules.php index 5d62962..50c0502 100644 --- a/php-cs-fixer-rules.php +++ b/php-cs-fixer-rules.php @@ -34,7 +34,7 @@ 'scope' => 'namespaced', 'strict' => true, ], - 'new_with_braces' => [ + 'new_with_parentheses' => [ 'named_class' => true, 'anonymous_class' => false, ],