Skip to content
Snippets Groups Projects

Issue #3273008: Installing modules with Drush with AutoUpdates enabled shows an error

1 file
+ 4
4
Compare changes
  • Side-by-side
  • Inline
@@ -58,9 +58,9 @@ class PathLocator {
return key($loaders);
}
// To determine which class loader is the one for Drupal's vendor
// directory, look for the loader whose vendor path starts the same way as
// the path to this file.
// To determine which class loader is the one for Drupal's vendor directory,
// look for the loader whose vendor path starts the same way as the path to
// this file.
foreach (array_keys($loaders) as $path) {
if (str_starts_with(__FILE__, dirname($path))) {
return $path;
@@ -68,7 +68,7 @@ class PathLocator {
}
// If we couldn't find a match, assume that the first registered class
// loader is the one we want.
return reset($loaders);
return key($loaders);
}
/**
Loading