From 044d342956392d1f5b01eca7578a67c372ea418f Mon Sep 17 00:00:00 2001 From: MDW Date: Mon, 29 Jan 2024 18:56:17 +0100 Subject: [PATCH] Fix: LABEL is required on the db classes. # Fix: LABEL is required on the db classes. Define const in parent type so that it is required in the subclasses. --- htdocs/core/db/DoliDB.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/core/db/DoliDB.class.php b/htdocs/core/db/DoliDB.class.php index d20d91462e6..498183faca6 100644 --- a/htdocs/core/db/DoliDB.class.php +++ b/htdocs/core/db/DoliDB.class.php @@ -30,8 +30,10 @@ require_once DOL_DOCUMENT_ROOT.'/core/db/Database.interface.php'; */ abstract class DoliDB implements Database { - /** Force subclass to implement VERSIONMIN*/ + /** Force subclass to implement VERSIONMIN - required DB version */ const VERSIONMIN = self::VERSIONMIN; + /** Force subclass to implement LABEL - description of DB type */ + const LABEL = self::LABEL; /** @var bool|resource|mysqli|SQLite3|PgSql\Connection Database handler */ public $db;