mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-22 01:49:05 +02:00
Fixed some errors introduced by earlier typings
This commit is contained in:
parent
b7c8ca2a48
commit
cbdf0a9392
6 changed files with 6 additions and 18 deletions
|
@ -141,10 +141,10 @@ abstract class AbstractLogEntry extends AbstractDBElement
|
|||
#[ORM\Column(type: Types::STRING)]
|
||||
protected string $username = '';
|
||||
|
||||
/** @var \DateTimeInterface|null The datetime the event associated with this log entry has occured
|
||||
/** @var \DateTimeInterface The datetime the event associated with this log entry has occured
|
||||
*/
|
||||
#[ORM\Column(name: 'datetime', type: Types::DATETIME_MUTABLE)]
|
||||
protected ?\DateTimeInterface $timestamp = null;
|
||||
protected \DateTimeInterface $timestamp;
|
||||
|
||||
/** @var int The priority level of the associated level. 0 is highest, 7 lowest
|
||||
*/
|
||||
|
@ -249,7 +249,7 @@ abstract class AbstractLogEntry extends AbstractDBElement
|
|||
/**
|
||||
* Returns the timestamp when the event that caused this log entry happened.
|
||||
*/
|
||||
public function getTimestamp(): \DateTimeInterface|null
|
||||
public function getTimestamp(): \DateTimeInterface
|
||||
{
|
||||
return $this->timestamp;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue