diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index a2a1950..b145224 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -25,7 +25,7 @@ jobs: - uses: shivammathur/setup-php@v2 with: - php-version: '8.4' + php-version: '8.5' coverage: xdebug - uses: ramsey/composer-install@v3 @@ -68,7 +68,7 @@ jobs: - uses: shivammathur/setup-php@v2 id: setup-php with: - php-version: '8.4' + php-version: '8.5' coverage: none tools: box:4 - uses: ramsey/composer-install@v3 diff --git a/.github/workflows/update-version-data.yml b/.github/workflows/update-version-data.yml index 4501854..82df17f 100644 --- a/.github/workflows/update-version-data.yml +++ b/.github/workflows/update-version-data.yml @@ -22,7 +22,7 @@ jobs: - uses: shivammathur/setup-php@v2 with: - php-version: '8.4' + php-version: '8.5' coverage: none - uses: actions/setup-go@v6 diff --git a/composer.json b/composer.json index a93394a..ccd7d9e 100644 --- a/composer.json +++ b/composer.json @@ -28,7 +28,7 @@ "security": "https://github.com/typisttech/php-matrix/security" }, "require": { - "php": "^8.4", + "php": "^8.5", "composer-runtime-api": "^2.2", "composer/semver": "^3.4", "guzzlehttp/guzzle": "^7.10", diff --git a/composer.lock b/composer.lock index 6f45399..18258a0 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "a30de2a4a1940747be0195d81fee04f7", + "content-hash": "67dddbe3daac227d91a93db499d3978f", "packages": [ { "name": "composer/semver", @@ -4990,9 +4990,9 @@ "prefer-stable": false, "prefer-lowest": false, "platform": { - "php": "^8.4", + "php": "^8.5", "composer-runtime-api": "^2.2" }, "platform-dev": {}, - "plugin-api-version": "2.6.0" + "plugin-api-version": "2.9.0" } diff --git a/craft.yml b/craft.yml index dc2e87d..432a001 100644 --- a/craft.yml +++ b/craft.yml @@ -1,4 +1,4 @@ -php-version: 8.4 +php-version: 8.5 extensions: - phar - filter # For Symfony CompleteCommand diff --git a/src/Versions.php b/src/Versions.php index ccb64e1..81e09d1 100644 --- a/src/Versions.php +++ b/src/Versions.php @@ -25,13 +25,13 @@ public static function lowest(string ...$versions): string { $sorted = self::sort(...$versions); - return $sorted[0]; + return (string) array_first($sorted); } public static function highest(string ...$versions): string { $sorted = self::sort(...$versions); - return $sorted[array_key_last($sorted)]; + return (string) array_last($sorted); } }