From 26ca7d3e2e14a791efb77b7cf910e1ec8b11e1f3 Mon Sep 17 00:00:00 2001 From: Reedy Date: Sat, 28 Nov 2026 17:31:46 +0000 Subject: [PATCH] Raise requirements to PHP 8.3 --- .github/workflows/php.yml | 12 +++--------- composer.json | 11 ++++++++--- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index d7ecc47..aacdb4e 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -13,12 +13,6 @@ jobs: fail-fast: false matrix: php: - - '7.2' - - '7.3' - - '7.4' - - '8.0' - - '8.1' - - '8.2' - '8.3' - '8.4' - '8.5' @@ -49,18 +43,18 @@ jobs: run: composer test - name: Setup PHP for coverage - if: matrix.php == '7.4' + if: matrix.php == '8.3' uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} coverage: xdebug - name: Generate coverage - if: matrix.php == '7.4' + if: matrix.php == '8.3' run: vendor/bin/phpunit --coverage-clover coverage.clover - name: Upload Scrutinizer coverage - if: matrix.php == '7.4' + if: matrix.php == '8.3' uses: sudo-bot/action-scrutinizer@latest with: cli-args: "--format=php-clover coverage.clover" diff --git a/composer.json b/composer.json index 10b0d95..1c09073 100644 --- a/composer.json +++ b/composer.json @@ -26,13 +26,13 @@ "irc": "irc://irc.freenode.net/wikidata" }, "require": { - "php": ">=7.2", + "php": ">=8.3", "data-values/data-values": "^3.0.0|^2.1.1|~1.0|~0.1", "data-values/interfaces": "^1.0.0|~0.2.0|~0.1.0" }, "require-dev": { - "phpunit/phpunit": "^8.5", - "mediawiki/mediawiki-codesniffer": "^34" + "phpunit/phpunit": "^9.6", + "mediawiki/mediawiki-codesniffer": "^52" }, "autoload": { "psr-4": { @@ -50,5 +50,10 @@ "phpcs -p -s", "phpunit" ] + }, + "config": { + "allow-plugins": { + "dealerdirect/phpcodesniffer-composer-installer": true + } } }