diff --git a/src/Composer/Command/InitCommand.php b/src/Composer/Command/InitCommand.php index 5a2568886..a6b86a9e6 100644 --- a/src/Composer/Command/InitCommand.php +++ b/src/Composer/Command/InitCommand.php @@ -48,12 +48,6 @@ class InitCommand extends BaseCommand { use PackageDiscoveryTrait; - // Properties for PackageDiscoveryTrait - /** @var ?CompositeRepository */ - protected $repos; - /** @var RepositorySet[] */ - private $repositorySets; - /** @var array */ private $gitConfig; @@ -71,7 +65,6 @@ class InitCommand extends BaseCommand new InputOption('name', null, InputOption::VALUE_REQUIRED, 'Name of the package'), new InputOption('description', null, InputOption::VALUE_REQUIRED, 'Description of package'), new InputOption('author', null, InputOption::VALUE_REQUIRED, 'Author name of package'), - // new InputOption('version', null, InputOption::VALUE_NONE, 'Version of package'), new InputOption('type', null, InputOption::VALUE_OPTIONAL, 'Type of package (e.g. library, project, metapackage, composer-plugin)'), new InputOption('homepage', null, InputOption::VALUE_REQUIRED, 'Homepage of package'), new InputOption('require', null, InputOption::VALUE_IS_ARRAY | InputOption::VALUE_REQUIRED, 'Package to require with a version constraint, e.g. foo/bar:1.0.0 or foo/bar=1.0.0 or "foo/bar 1.0.0"'), diff --git a/src/Composer/Command/PackageDiscoveryTrait.php b/src/Composer/Command/PackageDiscoveryTrait.php index e9a108798..4a6bb14d5 100644 --- a/src/Composer/Command/PackageDiscoveryTrait.php +++ b/src/Composer/Command/PackageDiscoveryTrait.php @@ -24,6 +24,11 @@ use Symfony\Component\Console\Output\OutputInterface; */ trait PackageDiscoveryTrait { + /** @var ?CompositeRepository */ + private $repos; + /** @var RepositorySet[] */ + private $repositorySets; + /** * @return CompositeRepository */ diff --git a/src/Composer/Command/RequireCommand.php b/src/Composer/Command/RequireCommand.php index 086649af9..7bd6b81ae 100644 --- a/src/Composer/Command/RequireCommand.php +++ b/src/Composer/Command/RequireCommand.php @@ -43,12 +43,6 @@ class RequireCommand extends BaseCommand { use PackageDiscoveryTrait; - // Properties for PackageDiscoveryTrait - /** @var ?CompositeRepository */ - protected $repos; - /** @var RepositorySet[] */ - private $repositorySets; - /** @var bool */ private $newlyCreated; /** @var bool */