From 516bfd33d8a9efac873ea1dc41f9ce4e0f8591d5 Mon Sep 17 00:00:00 2001 From: ruru4143 Date: Sun, 29 Sep 2024 11:45:17 +0200 Subject: [PATCH] fixed wrong nullable type declaration --- includes/activitypub/transformer/class-event.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/activitypub/transformer/class-event.php b/includes/activitypub/transformer/class-event.php index 8a1526a..f7b5b29 100644 --- a/includes/activitypub/transformer/class-event.php +++ b/includes/activitypub/transformer/class-event.php @@ -162,14 +162,14 @@ abstract class Event extends Post { /** * Compose a human readable formatted start time. */ - protected function format_start_time(): ?string { + protected function format_start_time(): string { return $this->format_time( $this->get_start_time() ); } /** * Compose a human readable formatted end time. */ - protected function format_end_time(): ?string { + protected function format_end_time(): string { return $this->format_time( $this->get_end_time() ); }