mirror of
https://github.com/Karaka-Management/oms-News.git
synced 2026-02-06 12:08:40 +00:00
fix minor construct bugs
This commit is contained in:
parent
4d0ddae9e6
commit
3190c973fa
|
|
@ -37,7 +37,7 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable
|
|||
* @var int
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private int $id = 0;
|
||||
protected int $id = 0;
|
||||
|
||||
/**
|
||||
* Title.
|
||||
|
|
@ -137,7 +137,6 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable
|
|||
$this->createdBy = new NullAccount();
|
||||
$this->createdAt = new \DateTime('now');
|
||||
$this->publish = new \DateTime('now');
|
||||
$this->account = new NullAccount();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -34,5 +34,6 @@ final class NullNewsArticle extends NewsArticle
|
|||
public function __construct(int $id = 0)
|
||||
{
|
||||
$this->id = $id;
|
||||
parent::__construct();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user