From 672eb83395fb14c39bbafda5f6481e3e04b43236 Mon Sep 17 00:00:00 2001 From: Tim Gerundt Date: Fri, 19 Sep 2025 21:52:50 +0200 Subject: [PATCH] Fix some PHPDoc infos --- src/includes/class.dbcore.php | 6 +++--- src/includes/markup.php | 2 +- src/includes/smartsyntax.php | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/includes/class.dbcore.php b/src/includes/class.dbcore.php index 2fc4a72..23d9b44 100644 --- a/src/includes/class.dbcore.php +++ b/src/includes/class.dbcore.php @@ -11,10 +11,10 @@ class DBCore { - /** @var Database_Abstract $db */ + /** @var Database_Abstract|null $db */ protected $db; - /** @var DBCore $defaultdb */ + /** @var DBCore|null $defaultdb */ protected static $defaultInstance; /** @@ -31,7 +31,7 @@ class DBCore * @return Database_Abstract * @throws Exception */ - public function connection() + public function connection() : Database_Abstract { if (!isset($this->db)) { throw new Exception("DBConnection is not set"); diff --git a/src/includes/markup.php b/src/includes/markup.php index 29b8bd7..00a5aeb 100644 --- a/src/includes/markup.php +++ b/src/includes/markup.php @@ -16,7 +16,7 @@ interface MTTMarkdownInterface final class MTTMarkdown { - /** @var MTTMarkdownInterface */ + /** @var MTTMarkdownInterface|null */ private static $instance; /** @var string */ diff --git a/src/includes/smartsyntax.php b/src/includes/smartsyntax.php index 5d718bd..05c4a15 100644 --- a/src/includes/smartsyntax.php +++ b/src/includes/smartsyntax.php @@ -12,7 +12,7 @@ class MTTSmartSyntax implements MTTSmartSyntaxInterface protected $duedatePrefix = '@!'; protected $weekdays = ['sun', 'mon', 'tue', 'wed', 'thu', 'fri', 'sat']; //3-letter not present in lang - /** @var MTTSmartSyntaxInterface */ + /** @var MTTSmartSyntaxInterface|null */ protected static $instance; public static function instance(): MTTSmartSyntaxInterface