diff --git a/README-zh.md b/README-zh.md index 21e33cf2..5d5b4b97 100644 --- a/README-zh.md +++ b/README-zh.md @@ -40,7 +40,7 @@ Blessing Skin 是一个开源的 PHP 项目,这意味着您可以自由地在 Blessing Skin 对您的服务器有一定的要求。在大多数情况下,下列所需的 PHP 扩展已经开启。 - 一台支持 URL 重写的主机,Nginx 或 Apache -- PHP >= 7.4.0 +- PHP >= 8.0.2 - 安装并启用如下 PHP 扩展: - OpenSSL - PDO diff --git a/README.md b/README.md index d2cf20c6..f43f40fd 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ Blessing Skin is an open-source project written in PHP, which means you can depl Blessing Skin has only a few system requirements. In most cases, these PHP extensions are already enabled. - Web server with URL rewriting enabled (Nginx or Apache) -- PHP >= 7.4.0 +- PHP >= 8.0.2 - PHP Extensions - OpenSSL - PDO diff --git a/bootstrap/chkenv.php b/bootstrap/chkenv.php index b48cc6d7..f9f5c8d9 100644 --- a/bootstrap/chkenv.php +++ b/bootstrap/chkenv.php @@ -49,7 +49,7 @@ ini_set('display_errors', true); ); } - $requiredVersion = '7.4.0'; + $requiredVersion = '8.0.2'; preg_match('/(\d+\.\d+\.\d+)/', PHP_VERSION, $matches); $version = $matches[1]; if (version_compare($version, $requiredVersion, '<')) { diff --git a/composer.json b/composer.json index 108ac264..18b0d9d5 100644 --- a/composer.json +++ b/composer.json @@ -3,7 +3,7 @@ "description": "A web application brings your custom skins back in offline Minecraft servers.", "license": "MIT", "require": { - "php": ">=7.4.0", + "php": ">=8.0.2", "ext-ctype": "*", "ext-gd": "*", "ext-json": "*", diff --git a/tests/HttpTest/ControllersTest/UpdateControllerTest.php b/tests/HttpTest/ControllersTest/UpdateControllerTest.php index 5e7de43c..2a20f847 100644 --- a/tests/HttpTest/ControllersTest/UpdateControllerTest.php +++ b/tests/HttpTest/ControllersTest/UpdateControllerTest.php @@ -73,7 +73,7 @@ class UpdateControllerTest extends TestCase { return array_merge([ 'spec' => 2, - 'php' => '7.4.0', + 'php' => '8.0.2', 'latest' => $version, 'url' => "https://whatever.test/$version/update.zip", ], $extra); diff --git a/tools/release.ps1 b/tools/release.ps1 index 6d102b1b..aadadafa 100644 --- a/tools/release.ps1 +++ b/tools/release.ps1 @@ -19,7 +19,7 @@ Copy-Item -Path "../$zip" -Destination $zip $manifest.latest = $current $manifest.url = $manifest.url.Replace($last, $current) -$manifest.php = '7.4.0' +$manifest.php = '8.0.2' ConvertTo-Json $manifest | Out-File -FilePath update.json Write-Host "Update source is prepared." -ForegroundColor Green