Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / drush / drush / src / Preflight / ArgsPreprocessor.php
index e54bcd46502f2ec5a1cba49d4044b900a3f5f915..a9e372f8f649774097503aaeb5d46371d5afb3d9 100644 (file)
@@ -1,8 +1,8 @@
 <?php
 namespace Drush\Preflight;
 
-use Drush\SiteAlias\SiteAliasName;
-use Drush\SiteAlias\SiteSpecParser;
+use Consolidation\SiteAlias\SiteAliasName;
+use Consolidation\SiteAlias\SiteSpecParser;
 
 /**
  * Preprocess commandline arguments.
@@ -64,7 +64,7 @@ class ArgsPreprocessor
                 return $storage->passArgs($argv);
             }
 
-            if ($this->isAliasOrSiteSpec($opt) && !$storage->hasAlias() && !$sawArg) {
+            if (!$sawArg && !$storage->hasAlias() && $this->isAliasOrSiteSpec($opt)) {
                 $storage->setAlias($opt);
                 continue;
             }