Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / drush / drush / src / Config / DrushConfig.php
index fab4da80696755b7f5b4dea46fed9d766aab6c1a..3c2e79c9729a95d03c5c3b5c6b2c6bcf7531b3f4 100644 (file)
@@ -39,12 +39,13 @@ class DrushConfig extends ConfigOverlay
     public function cache()
     {
         $candidates = [
+            $this->get('drush.paths.cache-directory'),
             Path::join($this->home(), '.drush/cache'),
             Path::join($this->tmp(), 'drush-' . $this->user() . '/cache'),
         ];
 
         $fs = new Filesystem();
-        foreach ($candidates as $candidate) {
+        foreach (array_filter($candidates) as $candidate) {
             try {
                 $fs->mkdir($candidate);
                 return $candidate;