Skip to content

Commit

Permalink
BREAKING: increase PHP version requirement to 8.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
g-plane committed Dec 12, 2021
1 parent b2c5cca commit 1b00600
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README-zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Blessing Skin 是一个开源的 PHP 项目,这意味着您可以自由地在
Blessing Skin 对您的服务器有一定的要求。在大多数情况下,下列所需的 PHP 扩展已经开启。

- 一台支持 URL 重写的主机,Nginx 或 Apache
- PHP >= 7.4.0
- PHP >= 8.0.2
- 安装并启用如下 PHP 扩展:
- OpenSSL
- PDO
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion bootstrap/chkenv.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function die_with_utf8_encoding($error)
);
}

$requiredVersion = '7.4.0';
$requiredVersion = '8.0.2';
preg_match('/(\d+\.\d+\.\d+)/', PHP_VERSION, $matches);
$version = $matches[1];
if (version_compare($version, $requiredVersion, '<')) {
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "*",
Expand Down
2 changes: 1 addition & 1 deletion tests/HttpTest/ControllersTest/UpdateControllerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ protected function fakeUpdateInfo(string $version, $extra = [])
{
return array_merge([
'spec' => 2,
'php' => '7.4.0',
'php' => '8.0.2',
'latest' => $version,
'url' => "https://whatever.test/$version/update.zip",
], $extra);
Expand Down
2 changes: 1 addition & 1 deletion tools/release.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 1b00600

Please sign in to comment.