1
0
Fork 0

Only show warning about default version when not "project" type (#11885)

pull/11888/head
Yanick Witschi 2024-03-14 16:38:28 +01:00 committed by GitHub
parent 94fe294545
commit 5a20dba768
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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",