From 870a87f6d65e7a8af7642008ed596c910df768a5 Mon Sep 17 00:00:00 2001 From: Nils Adermann Date: Thu, 28 Mar 2013 12:05:08 +0100 Subject: [PATCH] Use null as default values rather than false Also made archive() in the ArchiveCommand protected as it does not need to be used from the outside. The ArchiveManager can be used instead. --- src/Composer/Command/ArchiveCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Composer/Command/ArchiveCommand.php b/src/Composer/Command/ArchiveCommand.php index fce178047..03f9d4bef 100644 --- a/src/Composer/Command/ArchiveCommand.php +++ b/src/Composer/Command/ArchiveCommand.php @@ -64,7 +64,7 @@ EOT ); } - public function archive(IOInterface $io, $packageName = false, $version = false, $format = 'tar', $dest = '.') + protected function archive(IOInterface $io, $packageName = null, $version = null, $format = 'tar', $dest = '.') { $config = Factory::createConfig(); $factory = new Factory; @@ -91,7 +91,7 @@ EOT return 0; } - protected function selectPackage(IOInterface $io, $packageName, $version = false) + protected function selectPackage(IOInterface $io, $packageName, $version = null) { $io->write('Searching for the specified package.');