Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/Flex.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ class_exists(__NAMESPACE__.str_replace('/', '\\', substr($file, \strlen(__DIR__)

$resolver = new PackageResolver($this->downloader);

$command = null;
$commandObj = null;
try {
$command = $input->getFirstArgument();
Expand All @@ -180,7 +181,7 @@ class_exists(__NAMESPACE__.str_replace('/', '\\', substr($file, \strlen(__DIR__)
$symfonyRequire = null;
}

if (isset(self::$aliasResolveCommands[$command])) {
if (null !== $command && isset(self::$aliasResolveCommands[$command])) {
// When the command name is abbreviated (e.g. "req" for "require"), Composer
// activates plugins early to look up potential script commands, before the
// input has been bound to the command definition. In that case "packages"
Expand Down
Loading