From ea9f635b1a7db3ebf666dc4bfa007492c5040f51 Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 4 Jan 2025 07:39:33 +0100 Subject: [PATCH] Improved cs fixer config [skip ci] --- .ci/php-cs-fixer/.php-cs-fixer.php | 2 +- .ci/phpcs.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.ci/php-cs-fixer/.php-cs-fixer.php b/.ci/php-cs-fixer/.php-cs-fixer.php index e89bfe30fb..6262b878f4 100644 --- a/.ci/php-cs-fixer/.php-cs-fixer.php +++ b/.ci/php-cs-fixer/.php-cs-fixer.php @@ -61,7 +61,7 @@ return $config->setRules( 'comment_to_phpdoc' => false, // breaks phpstan lines in combination with PHPStorm. 'type_declaration_spaces' => false, 'cast_spaces' => false, - 'single_line_comment_style' => false, // do not overrule single line comment style. + 'phpdoc_to_comment' => false, // do not overrule single line comment style, breaks phpstan. // complex rules 'array_syntax' => ['syntax' => 'short'], diff --git a/.ci/phpcs.sh b/.ci/phpcs.sh index 9bb2c33719..3d6dc02c62 100755 --- a/.ci/phpcs.sh +++ b/.ci/phpcs.sh @@ -28,7 +28,7 @@ composer update --quiet rm -f .php-cs-fixer.cache PHP_CS_FIXER_IGNORE_ENV=true ./vendor/bin/php-cs-fixer fix \ --config $SCRIPT_DIR/php-cs-fixer/.php-cs-fixer.php \ - --format=txt \ + --format=txt -v \ --allow-risky=yes EXIT_CODE=$?