ConfigEntityType inherited functions return FALSE instead of NULL

Created on 31 October 2023, 8 months ago
Updated 19 January 2024, 5 months ago

Problem/Motivation

In ConfigEntityType.php:

  /**
   * {@inheritdoc}
   */
  public function getBaseTable() {
    return FALSE;
  }

  /**
   * {@inheritdoc}
   */
  public function getRevisionDataTable() {
    return FALSE;
  }

  /**
   * {@inheritdoc}
   */
  public function getRevisionTable() {
    return FALSE;
  }

  /**
   * {@inheritdoc}
   */
  public function getDataTable() {
    return FALSE;
  }

Whereas in EntityTypeInterface, each function says:

   * @return string|null
   *   The name of the entity type's revision table, or NULL if none exists.

Proposed resolution

Return NULL instead, or update the phpdoc comments.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Fixed

Version

11.0 🔥

Component
Entity 

Last updated about 8 hours ago

Created by

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

Comments & Activities

Production build 0.69.0 2024