Fixed some errors introduced by earlier typings

This commit is contained in:
Jan Böhmer 2023-06-18 16:01:28 +02:00
parent b7c8ca2a48
commit cbdf0a9392
6 changed files with 6 additions and 18 deletions

View file

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