From 5cedc4fb1c2e9566ac5df1c6a2fe150847e0ef0b Mon Sep 17 00:00:00 2001 From: Demin Yin Date: Thu, 11 Jan 2024 17:41:29 -0800 Subject: [PATCH] update coding style checks --- .github/workflows/coding_style_checks.yml | 2 +- .php-cs-fixer.dist.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/coding_style_checks.yml b/.github/workflows/coding_style_checks.yml index bf8cd60..6d07ac1 100644 --- a/.github/workflows/coding_style_checks.yml +++ b/.github/workflows/coding_style_checks.yml @@ -11,4 +11,4 @@ jobs: uses: actions/checkout@v4 - name: Run Coding Style Checks - run: docker run -q --rm -v "$(pwd):/project" -w /project -i jakzal/phpqa:php8.2 php-cs-fixer fix --dry-run + run: docker run -q --rm -v "$(pwd):/project" -w /project -i jakzal/phpqa:php8.2-alpine php-cs-fixer fix --dry-run diff --git a/.php-cs-fixer.dist.php b/.php-cs-fixer.dist.php index 6fa7fa6..bb99924 100644 --- a/.php-cs-fixer.dist.php +++ b/.php-cs-fixer.dist.php @@ -19,6 +19,7 @@ 'constant_case' => ['case' => 'lower'], 'combine_consecutive_unsets' => true, 'declare_strict_types' => true, + 'fully_qualified_strict_types' => ['phpdoc_tags' => []], 'general_phpdoc_annotation_remove' => ['annotations' => ['author']], 'header_comment' => ['comment_type' => 'PHPDoc', 'header' => '', 'separate' => 'bottom', 'location' => 'after_open'], 'increment_style' => ['style' => 'post'],