Fix crash when indexing Drush commands

Created on 11 June 2023, about 1 year ago
Updated 6 September 2023, 10 months ago

Problem/Motivation

I cannot use Drush after installing this module with Drush. When Drush checks for Drush commands, it tries to load the DurationFieldCommand class, which crashes because its class constructor requires arguments.

Steps to reproduce

Install duration_field with Drush.

Proposed resolution

Add a create() method to the DurationFieldCommand class to provide the required arguments to the class constructor.

Remaining tasks

🐛 Bug report
Status

RTBC

Version

3.0

Component

Code

Created by

🇺🇸United States Darren Oh Lakeland, Florida

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

Comments & Activities

Production build 0.69.0 2024