From bf89820d5729938d64a46167929fe230c9363b5c Mon Sep 17 00:00:00 2001 From: Sammyjo20 <29132017+Sammyjo20@users.noreply.github.com> Date: Thu, 20 Nov 2025 22:28:32 +0000 Subject: [PATCH 1/2] Feature | PHP 8.5 Support --- .github/workflows/php-cs-fixer.yml | 30 +++++++++++++++++++++--------- .github/workflows/phpstan.yml | 4 ++-- .github/workflows/tests.yml | 4 ++-- composer.json | 8 ++++---- 4 files changed, 29 insertions(+), 17 deletions(-) diff --git a/.github/workflows/php-cs-fixer.yml b/.github/workflows/php-cs-fixer.yml index e46cb40..3317ec3 100644 --- a/.github/workflows/php-cs-fixer.yml +++ b/.github/workflows/php-cs-fixer.yml @@ -11,18 +11,30 @@ on: permissions: contents: write +concurrency: + group: ${{ github.head_ref || github.ref || github.run_id }}_php_cs_fixer + cancel-in-progress: true + jobs: - php-cs-fixer: + lint: runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v3 - - name: Run PHP CS Fixer - uses: docker://oskarstark/php-cs-fixer-ga + - uses: actions/checkout@v4 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 with: - args: --config=.php-cs-fixer.dist.php --allow-risky=yes - - name: Commit changes - uses: stefanzweifel/git-auto-commit-action@v4 + php-version: '8.2' + + - name: Install Dependencies + run: | + composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist + + - name: Run PHP CS Fixer + run: ./vendor/bin/php-cs-fixer fix --allow-risky=yes + + - name: Commit Changes + uses: stefanzweifel/git-auto-commit-action@v5 with: commit_message: 🪄 Code Style Fixes + commit_options: '--no-verify' diff --git a/.github/workflows/phpstan.yml b/.github/workflows/phpstan.yml index 45f6e59..c5ec385 100644 --- a/.github/workflows/phpstan.yml +++ b/.github/workflows/phpstan.yml @@ -13,12 +13,12 @@ jobs: name: phpstan runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: '8.4' + php-version: '8.5' coverage: none - name: Install composer dependencies diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index d5037a1..787b581 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -18,14 +18,14 @@ jobs: fail-fast: true matrix: os: [ ubuntu-latest, windows-latest ] - php: [ 8.1, 8.2, 8.3, 8.4 ] + php: [ 8.2, 8.3, 8.4, 8.5 ] stability: [ prefer-lowest, prefer-stable ] name: P${{ matrix.php }} - ${{ matrix.stability }} - ${{ matrix.os }} steps: - name: Checkout code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup PHP uses: shivammathur/setup-php@v2 diff --git a/composer.json b/composer.json index b912c26..90b95f1 100644 --- a/composer.json +++ b/composer.json @@ -12,20 +12,20 @@ ], "homepage": "https://github.com/saloonphp/xml-wrangler", "require": { - "php": "^8.1", + "php": "^8.2", "veewee/xml": "^3.1.0", "spatie/array-to-xml": "^3.2", "ext-dom": "*" }, "require-dev": { "friendsofphp/php-cs-fixer": "^3.5", - "pestphp/pest": "^2.24", + "pestphp/pest": "^v4.1.4", "phpstan/phpstan": "^1.9", - "spatie/ray": "^1.33", "psr/http-message": "^2.0", "guzzlehttp/guzzle": "^7.8", "saloonphp/saloon": "^3.0", - "illuminate/collections": "^10.30" + "illuminate/collections": "^10.30", + "symfony/var-dumper": "^7.3" }, "minimum-stability": "stable", "autoload": { From b468524fb5d5ee70639ae2e7aa1c8a7fd0183670 Mon Sep 17 00:00:00 2001 From: Sammyjo20 <29132017+Sammyjo20@users.noreply.github.com> Date: Thu, 20 Nov 2025 22:30:11 +0000 Subject: [PATCH 2/2] Added Pest v3 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 90b95f1..0b35ba7 100644 --- a/composer.json +++ b/composer.json @@ -19,7 +19,7 @@ }, "require-dev": { "friendsofphp/php-cs-fixer": "^3.5", - "pestphp/pest": "^v4.1.4", + "pestphp/pest": "^v3.8.4 || v4.1.4", "phpstan/phpstan": "^1.9", "psr/http-message": "^2.0", "guzzlehttp/guzzle": "^7.8",