diff --git a/components/Bridge/Entity/ForeignLink.php b/components/Bridge/Entity/ForeignLink.php index 3334cc0917..fc93612c8b 100644 --- a/components/Bridge/Entity/ForeignLink.php +++ b/components/Bridge/Entity/ForeignLink.php @@ -45,10 +45,10 @@ class ForeignLink private int $noticesync = 1; private int $friendsync = 2; private int $profilesync = 1; - private ?DateTimeInterface $last_noticesync; - private ?DateTimeInterface $last_friendsync; - private DateTimeInterface $created; - private DateTimeInterface $modified; + private ?\DateTimeInterface $last_noticesync; + private ?\DateTimeInterface $last_friendsync; + private \DateTimeInterface $created; + private \DateTimeInterface $modified; public function setUserId(int $user_id): self { diff --git a/components/Bridge/Entity/ForeignService.php b/components/Bridge/Entity/ForeignService.php index fbf04b1ee2..1f3b090561 100644 --- a/components/Bridge/Entity/ForeignService.php +++ b/components/Bridge/Entity/ForeignService.php @@ -41,8 +41,8 @@ class ForeignService private int $id; private string $name; private ?string $description; - private DateTimeInterface $created; - private DateTimeInterface $modified; + private \DateTimeInterface $created; + private \DateTimeInterface $modified; public function setId(int $id): self { diff --git a/components/Bridge/Entity/ForeignSubscription.php b/components/Bridge/Entity/ForeignSubscription.php index f5f43a7099..15f9e83b6c 100644 --- a/components/Bridge/Entity/ForeignSubscription.php +++ b/components/Bridge/Entity/ForeignSubscription.php @@ -41,7 +41,7 @@ class ForeignSubscription private int $service; private int $subscriber; private int $subscribed; - private DateTimeInterface $created; + private \DateTimeInterface $created; public function setService(int $service): self { diff --git a/components/Bridge/Entity/ForeignUser.php b/components/Bridge/Entity/ForeignUser.php index 7d0b843bcb..52305a5627 100644 --- a/components/Bridge/Entity/ForeignUser.php +++ b/components/Bridge/Entity/ForeignUser.php @@ -42,8 +42,8 @@ class ForeignUser private int $service; private string $uri; private ?string $nickname; - private DateTimeInterface $created; - private DateTimeInterface $modified; + private \DateTimeInterface $created; + private \DateTimeInterface $modified; public function setId(int $id): self { diff --git a/plugins/Embed/Entity/AttachmentEmbed.php b/plugins/Embed/Entity/AttachmentEmbed.php index 037d4760fd..490bb04e80 100644 --- a/plugins/Embed/Entity/AttachmentEmbed.php +++ b/plugins/Embed/Entity/AttachmentEmbed.php @@ -33,6 +33,7 @@ namespace Plugin\Embed\Entity; use App\Core\Entity; +use DateTimeInterface; /** * Table Definition for attachment_embed @@ -55,7 +56,7 @@ class AttachmentEmbed extends Entity private ?string $author_name; private ?string $author_url; private ?string $url; - private DateTimeInterface $modified; + private \DateTimeInterface $modified; public function setAttachmentId(int $attachment_id): self { diff --git a/plugins/Favourite/Entity/Favourite.php b/plugins/Favourite/Entity/Favourite.php index 60887ef2ae..344e39ee23 100644 --- a/plugins/Favourite/Entity/Favourite.php +++ b/plugins/Favourite/Entity/Favourite.php @@ -27,8 +27,8 @@ class Favourite extends Entity // {{{ Autocode private int $note_id; private int $gsactor_id; - private DateTimeInterface $created; - private DateTimeInterface $modified; + private \DateTimeInterface $created; + private \DateTimeInterface $modified; public function setNoteId(int $note_id): self { diff --git a/plugins/Poll/Entity/Poll.php b/plugins/Poll/Entity/Poll.php index d3da79fb5d..b3f8494dd6 100644 --- a/plugins/Poll/Entity/Poll.php +++ b/plugins/Poll/Entity/Poll.php @@ -44,8 +44,8 @@ class Poll extends Entity private int $note_id; private ?string $question; private ?string $options; - private DateTimeInterface $created; - private DateTimeInterface $modified; + private \DateTimeInterface $created; + private \DateTimeInterface $modified; public function setId(int $id): self { diff --git a/plugins/Poll/Entity/PollResponse.php b/plugins/Poll/Entity/PollResponse.php index 02b9988ae9..1b0bcfeccb 100644 --- a/plugins/Poll/Entity/PollResponse.php +++ b/plugins/Poll/Entity/PollResponse.php @@ -43,8 +43,8 @@ class PollResponse extends Entity private int $poll_id; private ?int $gsactor_id; private ?int $selection; - private DateTimeInterface $created; - private DateTimeInterface $modified; + private \DateTimeInterface $created; + private \DateTimeInterface $modified; public function setId(int $id): self { diff --git a/src/Entity/Activity.php b/src/Entity/Activity.php index f2dc3b060c..7ebeee00b5 100644 --- a/src/Entity/Activity.php +++ b/src/Entity/Activity.php @@ -45,7 +45,7 @@ class Activity extends Entity private int $object_id; private bool $is_local; private ?string $source; - private DateTimeInterface $created; + private \DateTimeInterface $created; public function setId(int $id): self { diff --git a/src/Entity/Attachment.php b/src/Entity/Attachment.php index 60880eb1e4..c47d742736 100644 --- a/src/Entity/Attachment.php +++ b/src/Entity/Attachment.php @@ -54,7 +54,7 @@ class Attachment extends Entity private ?bool $is_local; private ?int $source; private ?int $scope; - private DateTimeInterface $modified; + private \DateTimeInterface $modified; public function setId(int $id): self { diff --git a/src/Entity/AttachmentThumbnail.php b/src/Entity/AttachmentThumbnail.php index 140d715b0f..1d0aa5af69 100644 --- a/src/Entity/AttachmentThumbnail.php +++ b/src/Entity/AttachmentThumbnail.php @@ -53,7 +53,7 @@ class AttachmentThumbnail extends Entity private int $attachment_id; private int $width; private int $height; - private DateTimeInterface $modified; + private \DateTimeInterface $modified; public function setAttachmentId(int $attachment_id): self { diff --git a/src/Entity/AttachmentToNote.php b/src/Entity/AttachmentToNote.php index 3e102eb4b5..9d06ab898e 100644 --- a/src/Entity/AttachmentToNote.php +++ b/src/Entity/AttachmentToNote.php @@ -41,7 +41,7 @@ class AttachmentToNote extends Entity // {{{ Autocode private int $attachment_id; private int $note_id; - private DateTimeInterface $modified; + private \DateTimeInterface $modified; public function setAttachmentId(int $attachment_id): self { diff --git a/src/Entity/Avatar.php b/src/Entity/Avatar.php index 641db91516..3c4e8bf3de 100644 --- a/src/Entity/Avatar.php +++ b/src/Entity/Avatar.php @@ -46,8 +46,8 @@ class Avatar extends Entity // {{{ Autocode private int $gsactor_id; private int $attachment_id; - private DateTimeInterface $created; - private DateTimeInterface $modified; + private \DateTimeInterface $created; + private \DateTimeInterface $modified; public function setGSActorId(int $gsactor_id): self { diff --git a/src/Entity/ConfirmAddress.php b/src/Entity/ConfirmAddress.php index 6a155a4ec3..f472768a5a 100644 --- a/src/Entity/ConfirmAddress.php +++ b/src/Entity/ConfirmAddress.php @@ -44,9 +44,9 @@ class ConfirmAddress extends Entity private string $address; private ?string $address_extra; private string $address_type; - private ?DateTimeInterface $claimed; - private DateTimeInterface $sent; - private DateTimeInterface $modified; + private ?\DateTimeInterface $claimed; + private \DateTimeInterface $sent; + private \DateTimeInterface $modified; public function setCode(string $code): self { diff --git a/src/Entity/Conversation.php b/src/Entity/Conversation.php index b55cd55c84..8485d62cc0 100644 --- a/src/Entity/Conversation.php +++ b/src/Entity/Conversation.php @@ -41,8 +41,8 @@ class Conversation extends Entity // {{{ Autocode private int $id; private int $note_id; - private DateTimeInterface $created; - private DateTimeInterface $modified; + private \DateTimeInterface $created; + private \DateTimeInterface $modified; public function setId(int $id): self { diff --git a/src/Entity/Cover.php b/src/Entity/Cover.php index aa514601df..d16b7f2a93 100644 --- a/src/Entity/Cover.php +++ b/src/Entity/Cover.php @@ -41,8 +41,8 @@ class Cover extends Entity // {{{ Autocode private int $gsactor_id; private int $file_id; - private DateTimeInterface $created; - private DateTimeInterface $modified; + private \DateTimeInterface $created; + private \DateTimeInterface $modified; public function setGSActorId(int $gsactor_id): self { diff --git a/src/Entity/Follow.php b/src/Entity/Follow.php index 8a82ebb812..d8c5575740 100644 --- a/src/Entity/Follow.php +++ b/src/Entity/Follow.php @@ -41,8 +41,8 @@ class Follow extends Entity // {{{ Autocode private int $follower; private int $followed; - private DateTimeInterface $created; - private DateTimeInterface $modified; + private \DateTimeInterface $created; + private \DateTimeInterface $modified; public function setFollower(int $follower): self { diff --git a/src/Entity/FollowQueue.php b/src/Entity/FollowQueue.php index 980c0fed93..8a744553c5 100644 --- a/src/Entity/FollowQueue.php +++ b/src/Entity/FollowQueue.php @@ -41,7 +41,7 @@ class FollowQueue extends Entity // {{{ Autocode private int $follower; private int $followed; - private DateTimeInterface $created; + private \DateTimeInterface $created; public function setFollower(int $follower): self { diff --git a/src/Entity/GSActor.php b/src/Entity/GSActor.php index af4005e73f..4fc3881308 100644 --- a/src/Entity/GSActor.php +++ b/src/Entity/GSActor.php @@ -57,8 +57,8 @@ class GSActor extends Entity private ?float $lon; private ?int $location_id; private ?int $location_service; - private DateTimeInterface $created; - private DateTimeInterface $modified; + private \DateTimeInterface $created; + private \DateTimeInterface $modified; public function setId(int $id): self { diff --git a/src/Entity/GSActorBlock.php b/src/Entity/GSActorBlock.php index 4d7a42794e..c94477f8c7 100644 --- a/src/Entity/GSActorBlock.php +++ b/src/Entity/GSActorBlock.php @@ -41,7 +41,7 @@ class GSActorBlock extends Entity // {{{ Autocode private int $blocker; private int $blocked; - private DateTimeInterface $modified; + private \DateTimeInterface $modified; public function setBlocker(int $blocker): self { diff --git a/src/Entity/GSActorCircle.php b/src/Entity/GSActorCircle.php index 86908add2a..5118442efc 100644 --- a/src/Entity/GSActorCircle.php +++ b/src/Entity/GSActorCircle.php @@ -43,8 +43,8 @@ class GSActorCircle extends Entity private string $tag; private ?string $description; private ?bool $private; - private DateTimeInterface $created; - private DateTimeInterface $modified; + private \DateTimeInterface $created; + private \DateTimeInterface $modified; public function setTagger(int $tagger): self { diff --git a/src/Entity/GSActorTag.php b/src/Entity/GSActorTag.php index b125710c7a..46523a938f 100644 --- a/src/Entity/GSActorTag.php +++ b/src/Entity/GSActorTag.php @@ -42,7 +42,7 @@ class GSActorTag extends Entity private int $tagger; private int $tagged; private string $tag; - private DateTimeInterface $modified; + private \DateTimeInterface $modified; public function setTagger(int $tagger): self { diff --git a/src/Entity/GSActorTagFollow.php b/src/Entity/GSActorTagFollow.php index a64eabaf22..eb424ebe74 100644 --- a/src/Entity/GSActorTagFollow.php +++ b/src/Entity/GSActorTagFollow.php @@ -41,8 +41,8 @@ class GSActorTagFollow extends Entity // {{{ Autocode private int $gsactor_id; private int $gsactor_tag; - private DateTimeInterface $created; - private DateTimeInterface $modified; + private \DateTimeInterface $created; + private \DateTimeInterface $modified; public function setGSActorId(int $gsactor_id): self { diff --git a/src/Entity/Group.php b/src/Entity/Group.php index a7c304fe5a..a2aa521f18 100644 --- a/src/Entity/Group.php +++ b/src/Entity/Group.php @@ -55,8 +55,8 @@ class Group extends Entity private ?string $mainpage; private ?int $join_policy; private ?int $force_scope; - private DateTimeInterface $created; - private DateTimeInterface $modified; + private \DateTimeInterface $created; + private \DateTimeInterface $modified; public function setId(int $id): self { diff --git a/src/Entity/GroupAlias.php b/src/Entity/GroupAlias.php index 2c34e57433..fdc4faac20 100644 --- a/src/Entity/GroupAlias.php +++ b/src/Entity/GroupAlias.php @@ -41,7 +41,7 @@ class GroupAlias extends Entity // {{{ Autocode private string $alias; private int $group_id; - private DateTimeInterface $modified; + private \DateTimeInterface $modified; public function setAlias(string $alias): self { diff --git a/src/Entity/GroupBlock.php b/src/Entity/GroupBlock.php index ffab33a006..3c6274d5e3 100644 --- a/src/Entity/GroupBlock.php +++ b/src/Entity/GroupBlock.php @@ -42,7 +42,7 @@ class GroupBlock extends Entity private int $group_id; private int $blocked_gsactor; private int $blocker_user; - private DateTimeInterface $modified; + private \DateTimeInterface $modified; public function setGroupId(int $group_id): self { diff --git a/src/Entity/GroupInbox.php b/src/Entity/GroupInbox.php index 0cff2ee247..7e09e68627 100644 --- a/src/Entity/GroupInbox.php +++ b/src/Entity/GroupInbox.php @@ -41,7 +41,7 @@ class GroupInbox extends Entity // {{{ Autocode private int $group_id; private int $activity_id; - private DateTimeInterface $created; + private \DateTimeInterface $created; public function setGroupId(int $group_id): self { diff --git a/src/Entity/GroupMember.php b/src/Entity/GroupMember.php index 1a6de03a51..6a3ac4bc2c 100644 --- a/src/Entity/GroupMember.php +++ b/src/Entity/GroupMember.php @@ -43,8 +43,8 @@ class GroupMember extends Entity private int $gsactor_id; private ?bool $is_admin; private ?string $uri; - private DateTimeInterface $created; - private DateTimeInterface $modified; + private \DateTimeInterface $created; + private \DateTimeInterface $modified; public function setGroupId(int $group_id): self { diff --git a/src/Entity/Invitation.php b/src/Entity/Invitation.php index d2095e183c..6a5ca8fa98 100644 --- a/src/Entity/Invitation.php +++ b/src/Entity/Invitation.php @@ -44,7 +44,7 @@ class Invitation extends Entity private string $address; private string $address_type; private ?int $registered_user_id; - private DateTimeInterface $created; + private \DateTimeInterface $created; public function setCode(string $code): self { diff --git a/src/Entity/LocalGroup.php b/src/Entity/LocalGroup.php index 81cf0af19e..85815222bd 100644 --- a/src/Entity/LocalGroup.php +++ b/src/Entity/LocalGroup.php @@ -41,8 +41,8 @@ class LocalGroup extends Entity // {{{ Autocode private int $group_id; private ?string $nickname; - private DateTimeInterface $created; - private DateTimeInterface $modified; + private \DateTimeInterface $created; + private \DateTimeInterface $modified; public function setGroupId(int $group_id): self { diff --git a/src/Entity/LocalUser.php b/src/Entity/LocalUser.php index d4e4bf8289..c6db5d6406 100644 --- a/src/Entity/LocalUser.php +++ b/src/Entity/LocalUser.php @@ -62,8 +62,8 @@ class LocalUser extends Entity implements UserInterface private ?bool $auto_follow_back; private ?int $follow_policy; private ?bool $is_stream_private; - private DateTimeInterface $created; - private DateTimeInterface $modified; + private \DateTimeInterface $created; + private \DateTimeInterface $modified; public function setId(int $id): self { diff --git a/src/Entity/LocationService.php b/src/Entity/LocationService.php index 31de1337bf..b9b3b1850b 100644 --- a/src/Entity/LocationService.php +++ b/src/Entity/LocationService.php @@ -41,8 +41,8 @@ class LocationService extends Entity // {{{ Autocode private int $id; private ?string $description; - private DateTimeInterface $created; - private DateTimeInterface $modified; + private \DateTimeInterface $created; + private \DateTimeInterface $modified; public function setId(int $id): self { diff --git a/src/Entity/Note.php b/src/Entity/Note.php index 9449dc96a8..7f599f1a00 100644 --- a/src/Entity/Note.php +++ b/src/Entity/Note.php @@ -51,8 +51,8 @@ class Note extends Entity private ?int $conversation; private ?int $repeat_of; private int $scope = 1; - private DateTimeInterface $created; - private DateTimeInterface $modified; + private \DateTimeInterface $created; + private \DateTimeInterface $modified; public function setId(int $id): self { diff --git a/src/Entity/NoteLocation.php b/src/Entity/NoteLocation.php index 19bc1b47ad..a982178085 100644 --- a/src/Entity/NoteLocation.php +++ b/src/Entity/NoteLocation.php @@ -44,7 +44,7 @@ class NoteLocation extends Entity private ?float $lon; private ?int $location_id; private ?int $location_service; - private DateTimeInterface $modified; + private \DateTimeInterface $modified; public function setNoteId(int $note_id): self { diff --git a/src/Entity/NoteSource.php b/src/Entity/NoteSource.php index 4704d28573..796dfde455 100644 --- a/src/Entity/NoteSource.php +++ b/src/Entity/NoteSource.php @@ -42,7 +42,7 @@ class NoteSource extends Entity private string $code; private string $name; private string $url; - private DateTimeInterface $modified; + private \DateTimeInterface $modified; public function setCode(string $code): self { diff --git a/src/Entity/NoteTag.php b/src/Entity/NoteTag.php index cfbc462c72..deeb4fbf0a 100644 --- a/src/Entity/NoteTag.php +++ b/src/Entity/NoteTag.php @@ -41,7 +41,7 @@ class NoteTag extends Entity // {{{ Autocode private string $tag; private int $note_id; - private DateTimeInterface $created; + private \DateTimeInterface $created; public function setTag(string $tag): self { diff --git a/src/Entity/Notification.php b/src/Entity/Notification.php index b90123e4d8..54b12704a7 100644 --- a/src/Entity/Notification.php +++ b/src/Entity/Notification.php @@ -42,8 +42,8 @@ class Notification extends Entity private int $activity_id; private int $gsactor_id; private ?string $reason; - private DateTimeInterface $created; - private DateTimeInterface $modified; + private \DateTimeInterface $created; + private \DateTimeInterface $modified; public function setActivityId(int $activity_id): self { diff --git a/src/Entity/ProfileColor.php b/src/Entity/ProfileColor.php index e2e195defe..6001017254 100644 --- a/src/Entity/ProfileColor.php +++ b/src/Entity/ProfileColor.php @@ -39,8 +39,8 @@ class ProfileColor extends Entity // {{{ Autocode private int $gsactor_id; private string $color; - private DateTimeInterface $created; - private DateTimeInterface $modified; + private \DateTimeInterface $created; + private \DateTimeInterface $modified; public function setGSActorId(int $gsactor_id): self { diff --git a/src/Entity/RelatedGroup.php b/src/Entity/RelatedGroup.php index 2740670fd0..4c5402b41c 100644 --- a/src/Entity/RelatedGroup.php +++ b/src/Entity/RelatedGroup.php @@ -41,7 +41,7 @@ class RelatedGroup extends Entity // {{{ Autocode private int $group_id; private int $related_group_id; - private DateTimeInterface $created; + private \DateTimeInterface $created; public function setGroupId(int $group_id): self { diff --git a/src/Entity/RememberMeToken.php b/src/Entity/RememberMeToken.php index 647b95f8ba..a5effa900b 100644 --- a/src/Entity/RememberMeToken.php +++ b/src/Entity/RememberMeToken.php @@ -39,7 +39,7 @@ class RememberMeToken extends Entity // {{{ Autocode private string $series; private string $value; - private DateTimeInterface $lastused; + private \DateTimeInterface $lastused; private string $class; private string $username; diff --git a/src/Entity/ReservedNickname.php b/src/Entity/ReservedNickname.php index 39fb00b57e..0983161635 100644 --- a/src/Entity/ReservedNickname.php +++ b/src/Entity/ReservedNickname.php @@ -40,7 +40,7 @@ class ReservedNickname extends Entity { // {{{ Autocode private string $nickname; - private DateTimeInterface $created; + private \DateTimeInterface $created; public function setNickname(string $nickname): self { diff --git a/src/Entity/SmsCarrier.php b/src/Entity/SmsCarrier.php index c7ca9d8db5..dfdf171393 100644 --- a/src/Entity/SmsCarrier.php +++ b/src/Entity/SmsCarrier.php @@ -42,8 +42,8 @@ class SmsCarrier extends Entity private int $id; private ?string $name; private string $email_pattern; - private DateTimeInterface $created; - private DateTimeInterface $modified; + private \DateTimeInterface $created; + private \DateTimeInterface $modified; public function setId(int $id): self { diff --git a/src/Entity/UserLocationPrefs.php b/src/Entity/UserLocationPrefs.php index 59a4bad60a..2b5e234c58 100644 --- a/src/Entity/UserLocationPrefs.php +++ b/src/Entity/UserLocationPrefs.php @@ -39,8 +39,8 @@ class UserLocationPrefs extends Entity // {{{ Autocode private int $user_id; private ?bool $share_location; - private DateTimeInterface $created; - private DateTimeInterface $modified; + private \DateTimeInterface $created; + private \DateTimeInterface $modified; public function setUserId(int $user_id): self { diff --git a/src/Entity/UserNotificationPrefs.php b/src/Entity/UserNotificationPrefs.php index 4b9dd7a420..aee100e29b 100644 --- a/src/Entity/UserNotificationPrefs.php +++ b/src/Entity/UserNotificationPrefs.php @@ -47,8 +47,8 @@ class UserNotificationPrefs extends Entity private bool $dm = true; private bool $post_on_status_change = false; private ?bool $enable_posting; - private DateTimeInterface $created; - private DateTimeInterface $modified; + private \DateTimeInterface $created; + private \DateTimeInterface $modified; public function setUserId(int $user_id): self { diff --git a/src/Entity/UserUrlShortenerPrefs.php b/src/Entity/UserUrlShortenerPrefs.php index 2bd34975ed..61e4331578 100644 --- a/src/Entity/UserUrlShortenerPrefs.php +++ b/src/Entity/UserUrlShortenerPrefs.php @@ -43,8 +43,8 @@ class UserUrlShortenerPrefs extends Entity private ?string $url_shortening_service; private int $max_url_length; private int $max_notice_length; - private DateTimeInterface $created; - private DateTimeInterface $modified; + private \DateTimeInterface $created; + private \DateTimeInterface $modified; public function setUserId(int $user_id): self {