Make WorkflowState strictly string

Created on 28 February 2025, about 1 month ago

Problem/Motivation

Since modern PHP IDE enforces strict typing, it becomes apparent that the WorkflowState ID's are not always a string.
If the State ID is not set, its value can be 0, '', empty array or NULL.

Steps to reproduce

Proposed resolution

Make sure that initial State ID is ''.
Make this apparent in the return value of getFromStateId() and getToStateId().

Remaining tasks

User interface changes

API changes

The constant defined in workflow.module file are now moved int WorkflowState class.

Data model changes

📌 Task
Status

Active

Version

1.8

Component

Code

Created by

🇳🇱Netherlands johnv

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

Comments & Activities

Production build 0.71.5 2024