Fix some PHPDoc infos

This commit is contained in:
Tim Gerundt 2025-09-19 21:52:50 +02:00
parent fdb41e546e
commit 672eb83395
3 changed files with 5 additions and 5 deletions

View file

@ -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");

View file

@ -16,7 +16,7 @@ interface MTTMarkdownInterface
final class MTTMarkdown
{
/** @var MTTMarkdownInterface */
/** @var MTTMarkdownInterface|null */
private static $instance;
/** @var string */

View file

@ -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