最佳答案
例如,我想要求:
{
"repositories": [
{
"type": "git",
"url": "https://github.com/google/google-api-php-client.git"
}
],
"require": {
"google/apiclient": "v1-master"
}
}
在这个例子中,我尝试在分支 v1-master
上要求 google/apiclient
:
[UnexpectedValueException]
Could not parse version constraint v1-master: Invalid version string "v1-master"