diff -u b/core/lib/Drupal/Core/Entity/EntityInterface.php b/core/lib/Drupal/Core/Entity/EntityInterface.php --- b/core/lib/Drupal/Core/Entity/EntityInterface.php +++ b/core/lib/Drupal/Core/Entity/EntityInterface.php @@ -214,7 +214,7 @@ /** * Creates a duplicate of the entity. * - * @return $this + * @return static */ public function createDuplicate();