From aba391e7034125484635cfde23fe8c2c7f31cf7f Mon Sep 17 00:00:00 2001 From: Mykyta Synelnikov Date: Tue, 18 Nov 2025 21:44:32 +0200 Subject: [PATCH] Update dev dependencies and PHP version in workflow Updated `composer.json` to adjust development dependencies, including upgrading PHP CodeSniffer and adding `symplify/phpstan-rules`. Modified GitHub Actions workflow to use the latest PHP version for builds, ensuring compatibility and latest features. --- .github/workflows/build-release.yml | 2 +- composer.json | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 6f5ad595..bea312ac 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -29,7 +29,7 @@ jobs: - name: Install PHP uses: "shivammathur/setup-php@v2" with: - php-version: "8.1" + php-version: "latest" - name: Install Composer Dependencies run: | composer install --no-progress --no-dev --optimize-autoloader --ignore-platform-req=ext-exif --ignore-platform-req=ext-gd --ignore-platform-req=ext-tidy diff --git a/composer.json b/composer.json index 44ff9598..970e0a34 100644 --- a/composer.json +++ b/composer.json @@ -28,11 +28,11 @@ }, "require-dev": { "wp-cli/wp-cli": "*", - "dealerdirect/phpcodesniffer-composer-installer": "^0.7.1", - "object-calisthenics/phpcs-calisthenics-rules": "*", + "dealerdirect/phpcodesniffer-composer-installer": "*", "phpcompatibility/phpcompatibility-wp": "*", - "wp-coding-standards/wpcs": "2.3.0", - "squizlabs/php_codesniffer": "3.*", + "wp-coding-standards/wpcs": "*", + "symplify/phpstan-rules": "*", + "squizlabs/php_codesniffer": "4.*", "phpdocumentor/phpdocumentor": "3.8.*", "sniccowp/php-scoper-wordpress-excludes": "6.8.*" },