Fix update.root for 9.3.x core and PHP 8.1
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3239550. --> Reported by: [andypost](https://www.drupal.org/user/118908) >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>The <code>update.root</code> service will get changes for Symfony 6 compatibility in 9.3x core <span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-7"><a href="https://www.drupal.org/project/drupal/issues/3232095" title="Status: Closed (fixed)">#3232095: [Symfony 6] Refactor the "update.root" service to return an object not a string</a></span></p> <p>Tests are using the service and needs fix to pass with coming core <a href="https://www.drupal.org/node/3239379">https://www.drupal.org/node/3239379</a></p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <p>use <code>\Drupal::VERSION</code> if that hunk still required</p> <h3 id="summary-remaining-tasks">Remaining tasks</h3> <p>- review<br> - fix<br> - create release</p> <h3 id="summary-ui-changes">User interface changes</h3> <p>no</p> <h3 id="summary-api-changes">API changes</h3> <p>no</p> <h3 id="summary-data-model-changes">Data model changes</h3> <p>no</p> > Related issue: [Issue #3232095](https://www.drupal.org/node/3232095) > Related issue: [Issue #3184581](https://www.drupal.org/node/3184581)
issue