Return type of NodeInterface::getTitle() should be nullable

Created on 1 September 2023, over 1 year ago
Updated 30 September 2023, about 1 year ago

Problem/Motivation

Currently, the return type of NodeInterface::getTitle is string. Most of the time this is correct, since title is a required field. However, during node preview, the node might be rendered without all required fields present, which can make the method return null.

Proposed resolution

Make the return type nullable.

πŸ› Bug report
Status

Fixed

Version

11.0 πŸ”₯

Component
Node systemΒ  β†’

Last updated 4 days ago

No maintainer
Created by

πŸ‡§πŸ‡ͺBelgium dieterholvoet Brussels

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

Comments & Activities

Production build 0.71.5 2024