From 1325be71ae78c43818dd84dd2e542b21559435af Mon Sep 17 00:00:00 2001 From: xjm <xjm@65776.no-reply.drupal.org> Date: Fri, 29 Sep 2023 23:51:42 -0500 Subject: [PATCH] Issue #3384759 by DieterHolvoet, xjm: Return type of NodeInterface::getTitle() should be nullable --- core/modules/node/src/NodeInterface.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/modules/node/src/NodeInterface.php b/core/modules/node/src/NodeInterface.php index d762e3a3a1af..89d9d114c6a2 100644 --- a/core/modules/node/src/NodeInterface.php +++ b/core/modules/node/src/NodeInterface.php @@ -54,8 +54,9 @@ public function getType(); /** * Gets the node title. * - * @return string - * Title of the node. + * @return string|null + * Title of the node, or NULL if the node doesn't yet have a title (for + * example, if a new node is being previewed). */ public function getTitle(); -- GitLab