composer: do not install packages with min version higher than 7.3.0

running composer update on 7.4 will generate a lock file using the newest dependencies which work for the current PHP version, which usually isn't desirable for a project like this where developers might be using newer PHP versions than users.
This commit is contained in:
Dylan K. Taylor 2020-09-04 00:58:01 +01:00
parent e47a711494
commit f9c2ed6200
2 changed files with 14 additions and 6 deletions

View File

@ -57,5 +57,10 @@
"psr-4": { "psr-4": {
"pocketmine\\": "tests/phpunit/" "pocketmine\\": "tests/phpunit/"
} }
},
"config": {
"platform": {
"php": "7.3.0"
}
} }
} }

15
composer.lock generated
View File

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "c1d313295fa1e219082cb159d7ba6c63", "content-hash": "0acbc64f870a4758034898ef4f8a824d",
"packages": [ "packages": [
{ {
"name": "adhocore/json-comment", "name": "adhocore/json-comment",
@ -1139,16 +1139,16 @@
}, },
{ {
"name": "phpunit/php-code-coverage", "name": "phpunit/php-code-coverage",
"version": "9.1.6", "version": "9.1.7",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/sebastianbergmann/php-code-coverage.git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git",
"reference": "d25b24b1cd14772bde4d75daeb393dc17db9f6e6" "reference": "2ef92bec3186a827faf7362ff92ae4e8ec2e49d2"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/d25b24b1cd14772bde4d75daeb393dc17db9f6e6", "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/2ef92bec3186a827faf7362ff92ae4e8ec2e49d2",
"reference": "d25b24b1cd14772bde4d75daeb393dc17db9f6e6", "reference": "2ef92bec3186a827faf7362ff92ae4e8ec2e49d2",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
@ -1208,7 +1208,7 @@
"type": "github" "type": "github"
} }
], ],
"time": "2020-08-31T06:31:46+00:00" "time": "2020-09-03T07:09:19+00:00"
}, },
{ {
"name": "phpunit/php-file-iterator", "name": "phpunit/php-file-iterator",
@ -2633,5 +2633,8 @@
"ext-zlib": ">=1.2.11" "ext-zlib": ">=1.2.11"
}, },
"platform-dev": [], "platform-dev": [],
"platform-overrides": {
"php": "7.3.0"
},
"plugin-api-version": "1.1.0" "plugin-api-version": "1.1.0"
} }