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

(cherry picked from commit 6d999ffd1e4a5009a08ab6ebb6c644a8c245f76c)
merge-requests/2976/head
catch 2022-11-10 17:00:22 +00:00
parent 23a9ff75be
commit ff620476db
1 changed files with 1 additions and 1 deletions

View File

@ -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)) {