From 18c6524392c993317b968ee90d67c1e7ef5defac Mon Sep 17 00:00:00 2001 From: lotyp Date: Tue, 18 Jun 2024 03:56:02 +0300 Subject: [PATCH] fix: allows to use @return tags in configs --- .github/workflows/refactoring.yml | 2 +- src/RuleSets/DefaultSet.php | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/refactoring.yml b/.github/workflows/refactoring.yml index c84a14ff..39b9787b 100644 --- a/.github/workflows/refactoring.yml +++ b/.github/workflows/refactoring.yml @@ -56,7 +56,7 @@ jobs: key: php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}-${{ hashFiles('composer.lock') }} restore-keys: php-${{ matrix.php-version }}-composer-${{ matrix.dependencies }}- - - name: 📥 Install "${{ matrix.dependencies }}" dependencies + - name: 📥 Install "${{ matrix.dependencies }}" dependencies with composer uses: wayofdev/gh-actions/actions/composer/install@v3.1.1 with: dependencies: ${{ matrix.dependencies }} diff --git a/src/RuleSets/DefaultSet.php b/src/RuleSets/DefaultSet.php index 693e7fbd..39cce87c 100644 --- a/src/RuleSets/DefaultSet.php +++ b/src/RuleSets/DefaultSet.php @@ -65,6 +65,9 @@ public function rules(): array 'phpdoc_align' => [ 'align' => 'left', ], + 'phpdoc_to_comment' => [ + 'allow_before_return_statement' => true, + ], 'ordered_class_elements' => [ 'sort_algorithm' => 'none',