From 663d0d468b710c302890a5d0ae75bfda9ecb22fb Mon Sep 17 00:00:00 2001 From: catch <catch@35733.no-reply.drupal.org> Date: Mon, 13 Feb 2023 16:38:25 +0000 Subject: [PATCH] Issue #3340272 by royalpinto007, Chi: Fix return type for EntityStorageBase::doPreSave() method --- core/lib/Drupal/Core/Entity/EntityStorageBase.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/lib/Drupal/Core/Entity/EntityStorageBase.php b/core/lib/Drupal/Core/Entity/EntityStorageBase.php index d32d8fbca684..85d7ef4359a0 100644 --- a/core/lib/Drupal/Core/Entity/EntityStorageBase.php +++ b/core/lib/Drupal/Core/Entity/EntityStorageBase.php @@ -497,8 +497,8 @@ public function save(EntityInterface $entity) { * @param \Drupal\Core\Entity\EntityInterface $entity * The saved entity. * - * @return int|string - * The processed entity identifier. + * @return int|string|null + * The processed entity identifier, or null for new entities. * * @throws \Drupal\Core\Entity\EntityStorageException * If the entity identifier is invalid. -- GitLab