Only show warning about default version when not "project" type (#11885)
parent
94fe294545
commit
5a20dba768
|
@ -99,7 +99,7 @@ class RootPackageLoader extends ArrayLoader
|
|||
}
|
||||
|
||||
if (!isset($config['version'])) {
|
||||
if ($this->io !== null && $config['name'] !== '__root__') {
|
||||
if ($this->io !== null && $config['name'] !== '__root__' && 'project' !== ($config['type'] ?? '')) {
|
||||
$this->io->warning(
|
||||
sprintf(
|
||||
"Composer could not detect the root package (%s) version, defaulting to '1.0.0'. See https://getcomposer.org/root-version",
|
||||
|
|
Loading…
Reference in New Issue