Require pmmpthread 6.0.1

This commit is contained in:
Dylan K. Taylor 2023-06-03 21:42:43 +01:00
parent 1706fb43eb
commit af1f7e098b
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D
3 changed files with 5 additions and 5 deletions

View File

@ -22,7 +22,7 @@
"ext-openssl": "*",
"ext-pcre": "*",
"ext-phar": "*",
"ext-pmmpthread": "^6.0",
"ext-pmmpthread": "^6.0.1",
"ext-reflection": "*",
"ext-simplexml": "*",
"ext-sockets": "*",

4
composer.lock generated
View File

@ -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": "41475569123dfa40907df1071269ee5f",
"content-hash": "f48120203fe576d1ef1b7eddd8460d8f",
"packages": [
{
"name": "adhocore/json-comment",
@ -3020,7 +3020,7 @@
"ext-openssl": "*",
"ext-pcre": "*",
"ext-phar": "*",
"ext-pmmpthread": "^6.0",
"ext-pmmpthread": "^6.0.1",
"ext-reflection": "*",
"ext-simplexml": "*",
"ext-sockets": "*",

View File

@ -120,8 +120,8 @@ namespace pocketmine {
}
if(($pmmpthread_version = phpversion("pmmpthread")) !== false){
if(version_compare($pmmpthread_version, "6.0.0-beta1") < 0 || version_compare($pmmpthread_version, "7.0.0") >= 0){
$messages[] = "pmmpthread ^6.0.0 is required, while you have $pmmpthread_version.";
if(version_compare($pmmpthread_version, "6.0.1") < 0 || version_compare($pmmpthread_version, "7.0.0") >= 0){
$messages[] = "pmmpthread ^6.0.1 is required, while you have $pmmpthread_version.";
}
}