Simplify getLegacyDrupalVersion()

Created on 30 March 2024, 9 months ago
Updated 28 April 2024, 8 months ago

Problem/Motivation

Follow up from 🐛 Migrate Drupal reports wrong version of Drupal if pointed at a Drupal 9 or 10 database Needs work from @benjifisher

simplify getLegacyDrupalVersion() further. Copying my suggestions from there:

Put a lot less in the try block.
Return early instead of assigning to $version_string and then returning it at the end

Steps to reproduce

NA

Proposed resolution

From the quote*

  • Put a lot less in the try block.
  • Return early instead of assigning to $version_string and then returning it at the end

Remaining tasks

Implement
Review

User interface changes

NA

API changes

NA

Data model changes

NA

Release notes snippet

NA

📌 Task
Status

Fixed

Version

11.0 🔥

Component
Migration 

Last updated about 13 hours ago

Created by

🇺🇸United States smustgrave

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024