Issue #3126923 by daffie: HEAD is broken for Drupal 8.9 with PHP 7.0

merge-requests/64/head
Alex Pott 2020-04-12 12:26:23 +01:00
parent 90f5f95851
commit 70dd2c2ec3
No known key found for this signature in database
GPG Key ID: 31905460D4A69276
1 changed files with 2 additions and 2 deletions

View File

@ -568,7 +568,7 @@ abstract class Database {
}
// 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.
@ -655,7 +655,7 @@ abstract class Database {
* \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