mirror of
https://github.com/composer/composer
synced 2025-05-09 00:22:53 +00:00
Change the single requirement ignore from --ignore-platform-reqs=xx to --ignore-platform-req=xx to avoid BC issues
This commit is contained in:
parent
cd8c377854
commit
c8efb50d39
10 changed files with 56 additions and 57 deletions
|
@ -264,9 +264,7 @@ class InstallerTest extends TestCase
|
|||
|
||||
$application = new Application;
|
||||
$application->get('install')->setCode(function ($input, $output) use ($installer) {
|
||||
$ignorePlatformReqs = $input->getOption('ignore-platform-reqs')
|
||||
? (array_filter($input->getOption('ignore-platform-reqs')) ? $input->getOption('ignore-platform-reqs') : true)
|
||||
: false;
|
||||
$ignorePlatformReqs = $input->getOption('ignore-platform-reqs') ?: ($input->getOption('ignore-platform-req') ?: false);
|
||||
|
||||
$installer
|
||||
->setDevMode(!$input->getOption('no-dev'))
|
||||
|
@ -291,9 +289,7 @@ class InstallerTest extends TestCase
|
|||
$updateAllowTransitiveDependencies = Request::UPDATE_LISTED_WITH_TRANSITIVE_DEPS_NO_ROOT_REQUIRE;
|
||||
}
|
||||
|
||||
$ignorePlatformReqs = $input->getOption('ignore-platform-reqs')
|
||||
? (array_filter($input->getOption('ignore-platform-reqs')) ? $input->getOption('ignore-platform-reqs') : true)
|
||||
: false;
|
||||
$ignorePlatformReqs = $input->getOption('ignore-platform-reqs') ?: ($input->getOption('ignore-platform-req') ?: false);
|
||||
|
||||
$installer
|
||||
->setDevMode(!$input->getOption('no-dev'))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue