diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0daea5b..54840bf 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,7 +12,7 @@ jobs: strategy: matrix: - php-version: ['7.2', '7.3', '7.4', '8.0'] + php-version: ['8.1', '8.2'] steps: - uses: actions/checkout@v2 diff --git a/composer.json b/composer.json index 42d5272..5fec240 100644 --- a/composer.json +++ b/composer.json @@ -15,13 +15,13 @@ } }, "require": { - "php": ">=7.2", + "php": ">=8.1", "ext-mbstring": "*" }, "require-dev": { - "phpunit/phpunit": "^8", - "squizlabs/php_codesniffer": "3.*", - "phpstan/phpstan": "^0.12.48" + "phpunit/phpunit": "^10.4.1", + "squizlabs/php_codesniffer": "^3.7.2", + "phpstan/phpstan": "^1.10.38" }, "scripts": { "test": "phpunit", diff --git a/phpunit.xml b/phpunit.xml index 1a24ac7..97589bb 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,19 +1,20 @@ - - - - tests - - - - - src - - - - - - - \ No newline at end of file + + + + + + + + + + tests + + + + + + src + + + + diff --git a/tests/BencodeTest.php b/tests/BencodeTest.php index 64e0940..01e63f8 100644 --- a/tests/BencodeTest.php +++ b/tests/BencodeTest.php @@ -6,7 +6,7 @@ namespace OrpheusNET\BencodeTorrent; class BencodeTest extends \PHPUnit\Framework\TestCase { - public function dataProvider(): array + public static function dataProvider(): array { return [ ['i0e', 0], @@ -47,7 +47,7 @@ class BencodeTest extends \PHPUnit\Framework\TestCase $bencode->decodeString('di1e5:valuee'); } - public function invalidIntegers(): array + public static function invalidIntegers(): array { return [['-0'], ['a'], ['1.0']]; }