Commit ff620476 authored by catch's avatar catch
Browse files

Issue #3320483 by andypost: Remove unused variable $pos in system.install

(cherry picked from commit 6d999ffd1e4a5009a08ab6ebb6c644a8c245f76c)
parent 23a9ff75
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1271,7 +1271,7 @@ function system_requirements($phase) {
    $provider = $connection->getProvider();
    if ($provider !== 'core' && !\Drupal::moduleHandler()->moduleExists($provider)) {
      $autoload = $connection->getConnectionOptions()['autoload'] ?? '';
      if (($pos = strpos($autoload, 'src/Driver/Database/')) !== FALSE) {
      if (strpos($autoload, 'src/Driver/Database/') !== FALSE) {
        $post_update_registry = \Drupal::service('update.post_update_registry');
        $pending_updates = $post_update_registry->getPendingUpdateInformation();
        if (!in_array('enable_provider_database_driver', array_keys($pending_updates['system']['pending'] ?? []), TRUE)) {