diff --git a/includes/activitypub/transformer/location/class-the-events-calendar.php b/includes/activitypub/transformer/location/class-the-events-calendar.php index f40c286..2c5977a 100644 --- a/includes/activitypub/transformer/location/class-the-events-calendar.php +++ b/includes/activitypub/transformer/location/class-the-events-calendar.php @@ -47,7 +47,7 @@ final class The_Events_Calendar extends Post { * * @return array|string|null The place/venue if one is set. */ - public function get_address(): mixed { + public function get_address() { $address = array(); if ( ! empty( $this->wp_object->country ) ) { diff --git a/tests/test-class-plugin-the-events-calendar.php b/tests/test-class-plugin-the-events-calendar.php index ebb3639..a0479bd 100644 --- a/tests/test-class-plugin-the-events-calendar.php +++ b/tests/test-class-plugin-the-events-calendar.php @@ -192,6 +192,7 @@ class Test_The_Events_Calendar extends WP_UnitTestCase { ->create(); // Call the transformer. + $event_array = \Activitypub\Transformer\Factory::get_transformer( $wp_object )->to_object()->to_array(); // Check that the event ActivityStreams representation contains everything as expected.