From 58e80192167807351618876a4cd48793686471c9 Mon Sep 17 00:00:00 2001 From: Sergei Predvoditelev Date: Sun, 26 Apr 2026 13:51:57 +0300 Subject: [PATCH 1/2] Fix CS GitHub Action --- .github/workflows/cs.yml | 12 ++++-------- src/Environment.php | 2 +- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/.github/workflows/cs.yml b/.github/workflows/cs.yml index 7865a92..b79ef3e 100644 --- a/.github/workflows/cs.yml +++ b/.github/workflows/cs.yml @@ -1,7 +1,7 @@ name: Code Style on: - pull_request_target: + pull_request: paths: - '.github/workflows/cs.yml' - 'config/**' @@ -20,11 +20,7 @@ jobs: contents: write steps: - name: Checkout code - uses: actions/checkout@v4 - with: - token: ${{ secrets.YIISOFT_GITHUB_TOKEN }} - ref: ${{ github.head_ref }} - repository: ${{ github.event.pull_request.head.repo.full_name }} + uses: actions/checkout@v6 - name: Install PHP uses: shivammathur/setup-php@v2 @@ -34,7 +30,7 @@ jobs: coverage: none - name: Install Composer dependencies - uses: "ramsey/composer-install@v3" + uses: "ramsey/composer-install@v4" - name: Run PHP CS Fixer run: ./vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.php @@ -43,7 +39,7 @@ jobs: run: ./vendor/bin/rector --output-format=github - name: Commit changes - uses: stefanzweifel/git-auto-commit-action@v5 + uses: stefanzweifel/git-auto-commit-action@v7 with: commit_message: "Apply PHP CS Fixer and Rector changes (CI)" file_pattern: '*.php' diff --git a/src/Environment.php b/src/Environment.php index 8482e97..3704710 100644 --- a/src/Environment.php +++ b/src/Environment.php @@ -18,7 +18,7 @@ final class Environment public const ENVIRONMENTS = [ self::DEV, self::TEST, - self::PROD, + self::PROD ]; private static array $values = []; From 904f49c7f345887753f8b32a93c8d06aa072c944 Mon Sep 17 00:00:00 2001 From: vjik <525501+vjik@users.noreply.github.com> Date: Sun, 26 Apr 2026 10:52:46 +0000 Subject: [PATCH 2/2] Apply PHP CS Fixer and Rector changes (CI) --- src/Environment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Environment.php b/src/Environment.php index 3704710..8482e97 100644 --- a/src/Environment.php +++ b/src/Environment.php @@ -18,7 +18,7 @@ final class Environment public const ENVIRONMENTS = [ self::DEV, self::TEST, - self::PROD + self::PROD, ]; private static array $values = [];