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 aa16fb3..b8e77c3 100644 --- a/composer.json +++ b/composer.json @@ -26,13 +26,13 @@ "irc": "irc://irc.libera.chat/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 + } } }