From c3ea6edc220e7dede269fcbf2299fb011137f822 Mon Sep 17 00:00:00 2001 From: "Dylan K. Taylor" Date: Sun, 8 Jun 2025 18:49:27 +0100 Subject: [PATCH] Bump minimum PHP version to 8.3 --- .github/workflows/discord-release-notify.yml | 2 +- .github/workflows/draft-release-pr-check.yml | 2 +- .github/workflows/draft-release.yml | 2 +- .github/workflows/main.yml | 2 +- composer.json | 4 ++-- composer.lock | 6 +++--- src/PocketMine.php | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/discord-release-notify.yml b/.github/workflows/discord-release-notify.yml index 93b2978aad..1116946da6 100644 --- a/.github/workflows/discord-release-notify.yml +++ b/.github/workflows/discord-release-notify.yml @@ -15,7 +15,7 @@ jobs: - name: Setup PHP and tools uses: shivammathur/setup-php@2.33.0 with: - php-version: 8.2 + php-version: 8.3 - name: Restore Composer package cache uses: actions/cache@v4 diff --git a/.github/workflows/draft-release-pr-check.yml b/.github/workflows/draft-release-pr-check.yml index 20b2200e6d..de017f5856 100644 --- a/.github/workflows/draft-release-pr-check.yml +++ b/.github/workflows/draft-release-pr-check.yml @@ -51,7 +51,7 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@2.33.0 with: - php-version: 8.2 + php-version: 8.3 - name: Restore Composer package cache uses: actions/cache@v4 diff --git a/.github/workflows/draft-release.yml b/.github/workflows/draft-release.yml index fa20d19128..bf23ef5ad2 100644 --- a/.github/workflows/draft-release.yml +++ b/.github/workflows/draft-release.yml @@ -18,7 +18,7 @@ on: - "*" env: - PHP_VERSION: "8.2" + PHP_VERSION: "8.3" jobs: skip: diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index cabda54be8..f246f5802c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,7 +11,7 @@ jobs: strategy: fail-fast: false matrix: - php: ["8.1", "8.2", "8.3"] + php: ["8.3"] uses: ./.github/workflows/main-php-matrix.yml with: diff --git a/composer.json b/composer.json index 1754ad473a..04f08bbeb0 100644 --- a/composer.json +++ b/composer.json @@ -5,7 +5,7 @@ "homepage": "https://pmmp.io", "license": "LGPL-3.0", "require": { - "php": "^8.1", + "php": "^8.3", "php-64bit": "*", "ext-chunkutils2": "^0.3.1", "ext-crypto": "^0.3.1", @@ -77,7 +77,7 @@ }, "config": { "platform": { - "php": "8.1.0" + "php": "8.3.0" }, "sort-packages": true }, diff --git a/composer.lock b/composer.lock index c01e7a2998..5eb9e6da33 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": "7c3052613e98e566d8b00ae3c9119057", + "content-hash": "3aa2808cfb5b30b7a4eb481d19d76c7e", "packages": [ { "name": "adhocore/json-comment", @@ -2761,7 +2761,7 @@ "prefer-stable": false, "prefer-lowest": false, "platform": { - "php": "^8.1", + "php": "^8.3", "php-64bit": "*", "ext-chunkutils2": "^0.3.1", "ext-crypto": "^0.3.1", @@ -2790,7 +2790,7 @@ }, "platform-dev": {}, "platform-overrides": { - "php": "8.1.0" + "php": "8.3.0" }, "plugin-api-version": "2.6.0" } diff --git a/src/PocketMine.php b/src/PocketMine.php index a71c9768d4..04b95dd322 100644 --- a/src/PocketMine.php +++ b/src/PocketMine.php @@ -55,7 +55,7 @@ namespace pocketmine { require_once __DIR__ . '/VersionInfo.php'; - const MIN_PHP_VERSION = "8.1.0"; + const MIN_PHP_VERSION = "8.3.0"; /** * @param string $message