diff --git a/src/Entity/Attachments/AttachmentType.php b/src/Entity/Attachments/AttachmentType.php index e0c530f1..240c8ef8 100644 --- a/src/Entity/Attachments/AttachmentType.php +++ b/src/Entity/Attachments/AttachmentType.php @@ -86,9 +86,6 @@ use Symfony\Component\Validator\Constraints as Assert; #[ApiFilter(OrderFilter::class, properties: ['name', 'id', 'addedDate', 'lastModified'])] class AttachmentType extends AbstractStructuralDBElement { - /** - * @var Collection - */ #[ORM\OneToMany(mappedBy: 'parent', targetEntity: AttachmentType::class, cascade: ['persist'])] #[ORM\OrderBy(['name' => Criteria::ASC])] protected Collection $children; diff --git a/src/Entity/LogSystem/AbstractLogEntry.php b/src/Entity/LogSystem/AbstractLogEntry.php index 6b6eb7f3..ba1a4b23 100644 --- a/src/Entity/LogSystem/AbstractLogEntry.php +++ b/src/Entity/LogSystem/AbstractLogEntry.php @@ -59,7 +59,7 @@ abstract class AbstractLogEntry extends AbstractDBElement * @var \DateTimeInterface The datetime the event associated with this log entry has occured */ #[ORM\Column(name: 'datetime', type: Types::DATETIME_MUTABLE)] - protected \DateTime $timestamp; + protected \DateTimeInterface $timestamp; /** * @var LogLevel The priority level of the associated level. 0 is highest, 7 lowest diff --git a/src/Entity/Parts/PartLot.php b/src/Entity/Parts/PartLot.php index fdd39ba7..25b40d5a 100644 --- a/src/Entity/Parts/PartLot.php +++ b/src/Entity/Parts/PartLot.php @@ -105,7 +105,7 @@ class PartLot extends AbstractDBElement implements TimeStampableInterface, Named protected string $comment = ''; /** - * @var \DateTimeInterface|null Set a time until when the lot must be used. + * @var \DateTime|null Set a time until when the lot must be used. * Set to null, if the lot can be used indefinitely. */ #[Groups(['extended', 'full', 'import', 'part_lot:read', 'part_lot:write'])] diff --git a/src/Entity/UserSystem/User.php b/src/Entity/UserSystem/User.php index 7b81afe5..38211873 100644 --- a/src/Entity/UserSystem/User.php +++ b/src/Entity/UserSystem/User.php @@ -318,7 +318,7 @@ class User extends AttachmentContainingDBElement implements UserInterface, HasPe protected ?PermissionData $permissions = null; /** - * @var \DateTimeInterface|null the time until the password reset token is valid + * @var \DateTime|null the time until the password reset token is valid */ #[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)] protected ?\DateTime $pw_reset_expires = null;