Deprecate passing $root to \Drupal\Core\Database\Database::convertDbUrlToConnectionInfo()

Created on 2 May 2025, 30 days ago

Problem/Motivation

Follow up of 📌 Deprecate passing $root to \Drupal\Core\Database\Connection::createConnectionOptionsFromUr Active .

Deprecate passing $root to \Drupal\Core\Database\Database::convertDbUrlToConnectionInfo() - since \Drupal\Core\Database\Connection::createConnectionOptionsFromUrl() no longer needs it we no longer need it at all.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

📌 Task
Status

Active

Version

11.0 🔥

Component

database system

Created by

🇬🇧United Kingdom longwave UK

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @longwave
  • First commit to issue fork.
  • Merge request !12028Closes #3522513 → (Open) created by mondrake
  • Pipeline finished with Failed
    30 days ago
    Total: 201s
    #487902
  • Pipeline finished with Failed
    29 days ago
    Total: 184s
    #487950
  • Pipeline finished with Failed
    29 days ago
    #488069
  • Pipeline finished with Failed
    29 days ago
    Total: 177s
    #488071
  • 🇮🇹Italy mondrake 🇮🇹
  • Pipeline finished with Success
    29 days ago
    Total: 1052s
    #488141
  • 🇮🇹Italy mondrake 🇮🇹

    Changes made

  • Pipeline finished with Success
    28 days ago
    Total: 555s
    #488413
  • 🇬🇧United Kingdom longwave UK

    Looks good to me, tagging for change record updates as it does make sense to merge this with the other one - let's do that on commit.

  • The Needs Review Queue Bot → tested this issue. It fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".

    This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.

    Consult the Drupal Contributor Guide → to find step-by-step guides for working with issues.

  • 🇬🇧United Kingdom longwave UK

    The bot is wrong.

  • 🇬🇧United Kingdom longwave UK

    Actually no, something has changed in PHPStan, I get the same locally

      Line   lib/Drupal/Core/Test/TestSetupTrait.php (in context of                                           
             class@anonymous/tests/Drupal/Tests/Core/Test/TestSetupTraitTest.php:39)                          
     ------ ------------------------------------------------------------------------------------------------- 
      137    Method                                                                                           
             class@anonymous/tests/Drupal/Tests/Core/Test/TestSetupTraitTest.php:39::prepareDatabasePrefix()  
             has no return type specified.                                                                    
             🪪  missingType.return                                                                           
      146    Method                                                                                           
             class@anonymous/tests/Drupal/Tests/Core/Test/TestSetupTraitTest.php:39::changeDatabasePrefix()   
             has no return type specified.                                                                    
             🪪  missingType.return         
    
  • Pipeline finished with Failed
    26 days ago
    Total: 258s
    #490932
  • 🇮🇹Italy mondrake 🇮🇹

    Looks like bot and your local have an old baseline version? I added the return type and the core CI job tells me to remove the above from the baseline

  • 🇺🇸United States smustgrave

    Seems phpstan is still failing.

  • Pipeline finished with Failed
    25 days ago
    Total: 162s
    #491417
  • 🇮🇹Italy mondrake 🇮🇹
  • Pipeline finished with Success
    25 days ago
    Total: 2172s
    #491437
  • 🇺🇸United States smustgrave

    Tests seem to be happy now

    @longwave you tagged for change record updates?

  • Pipeline finished with Failed
    14 days ago
    Total: 699s
    #500343
  • Pipeline finished with Success
    9 days ago
    Total: 599s
    #505060
Production build 0.71.5 2024