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

merge-requests/2950/head
catch 2022-11-10 17:00:22 +00:00
parent a5f4685c6a
commit c5a37e64ae
1 changed files with 1 additions and 1 deletions

View File

@ -1266,7 +1266,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)) {