1
0
Fork 0

Only show getting started warning for non-global composer load

pull/9565/head
Jordi Boggiano 2020-12-15 20:39:50 +01:00
parent eb9616a82b
commit bc31351b5b
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 1 additions and 1 deletions

View File

@ -295,7 +295,7 @@ class Factory
} else {
$message = 'Composer could not find the config file: '.$localConfig;
}
$instructions = 'To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section';
$instructions = $fullLoad ? 'To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section' : '';
throw new \InvalidArgumentException($message.PHP_EOL.$instructions);
}