From c5a37e64ae0eb99ef7cbca4959759a5c7b55a58f Mon Sep 17 00:00:00 2001 From: catch Date: Thu, 10 Nov 2022 17:00:22 +0000 Subject: [PATCH] Issue #3320483 by andypost: Remove unused variable $pos in system.install --- core/modules/system/system.install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/system/system.install b/core/modules/system/system.install index 41d0b4fe30a..36dea438509 100644 --- a/core/modules/system/system.install +++ b/core/modules/system/system.install @@ -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)) {