From 9cd03227c7c25460288875db0a7401af891221b6 Mon Sep 17 00:00:00 2001 From: Guillaume Wambre Date: Wed, 19 Nov 2025 14:37:56 +0100 Subject: [PATCH] Update php-quality-config usage --- .github/workflows/build.yml | 7 +++++-- composer.json | 14 +++++++------- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7366e95..eddfd6b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,7 +10,7 @@ jobs: build: strategy: matrix: - php-versions: ['8.1', '8.2', '8.3'] + php-versions: [ '8.2', '8.3' ] runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 @@ -30,7 +30,10 @@ jobs: - run: vendor/bin/phpstan if: ${{ failure() || success() }} - + + - run: vendor/bin/rector process --dry-run + if: ${{ failure() || success() }} + - run: XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-clover ./clover.xml --log-junit ./phpunit.report.xml if: ${{ failure() || success() }} diff --git a/composer.json b/composer.json index 77f4b41..56bd955 100644 --- a/composer.json +++ b/composer.json @@ -22,15 +22,15 @@ } }, "require-dev": { - "phpunit/phpunit": "^9.2", - "squizlabs/php_codesniffer": "^3", - "phpstan/phpstan": "^1.4", - "phpstan/phpstan-phpunit": "^1.0", - "phpstan/phpstan-strict-rules": "^1.1", - "rector/rector": "^1.2" + "assoconnect/php-quality-config": "^1.16" }, "require": { - "php": "^7.4|^8.0", + "php": "^8.2", "moneyphp/money": "^3.0|^4.0" + }, + "config": { + "allow-plugins": { + "dealerdirect/phpcodesniffer-composer-installer": true + } } }