mirror of
https://github.com/maxpozdeev/mytinytodo.git
synced 2026-03-11 08:55:27 +00:00
Fix some PHPDoc infos
This commit is contained in:
parent
fdb41e546e
commit
672eb83395
3 changed files with 5 additions and 5 deletions
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ interface MTTMarkdownInterface
|
|||
|
||||
final class MTTMarkdown
|
||||
{
|
||||
/** @var MTTMarkdownInterface */
|
||||
/** @var MTTMarkdownInterface|null */
|
||||
private static $instance;
|
||||
|
||||
/** @var string */
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue