Commit 2b279d38 authored by catch's avatar catch
Browse files

Issue #3240191 by andypost, alexpott:...

Issue #3240191 by andypost, alexpott: \Drupal\KernelTests\KernelTestBase::bootKernel() causing deprecations in PHP 8.1
parent 1cdc36bc
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -348,8 +348,8 @@ private function bootKernel() {
    // When a module is providing the database driver, then enable that module.
    $connection_info = Database::getConnectionInfo();
    $driver = $connection_info['default']['driver'];
    $namespace = $connection_info['default']['namespace'] ?? NULL;
    $autoload = $connection_info['default']['autoload'] ?? NULL;
    $namespace = $connection_info['default']['namespace'] ?? '';
    $autoload = $connection_info['default']['autoload'] ?? '';
    if (strpos($autoload, 'src/Driver/Database/') !== FALSE) {
      [$first, $second] = explode('\\', $namespace, 3);
      if ($first === 'Drupal' && strtolower($second) === $second) {