Skip to content

Commit

Permalink
Issue #3126923 by daffie: HEAD is broken for Drupal 8.9 with PHP 7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpott committed Apr 12, 2020
1 parent f098f2a commit 0077c08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Drupal/Core/Database/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -568,7 +568,7 @@ public static function findDriverAutoloadDirectory($namespace, $root) {
}

// Extract the module information from the namespace.
[, $module, $module_relative_namespace] = explode('\\', $namespace, 3);
list(, $module, $module_relative_namespace) = explode('\\', $namespace, 3);

// The namespace is within a Drupal module. Find the directory where the
// module is located.
Expand Down Expand Up @@ -655,7 +655,7 @@ protected static function getDatabaseDriverNamespace(array $connection_info) {
* \Drupal\Core\Database\Database::getConnectionInfoAsUrl() is removed.
*/
private static function isWithinModuleNamespace(string $namespace) {
[$first, $second] = explode('\\', $namespace, 3);
list($first, $second) = explode('\\', $namespace, 3);

// The namespace for Drupal modules is Drupal\MODULE_NAME, and the module
// name must be all lowercase. Second-level namespaces containing uppercase
Expand Down

0 comments on commit 0077c08

Please sign in to comment.