fix return type
Some checks failed
PHP Code Checker / PHP Code Checker (pull_request) Successful in 35s
PHPUnit / PHPUnit – PHP 8.1 (pull_request) Failing after 1m1s
PHPUnit / PHPUnit – PHP 8.2 (pull_request) Failing after 1m0s
PHPUnit / PHPUnit – PHP 8.3 (pull_request) Failing after 57s

This commit is contained in:
André Menrath 2024-10-09 19:42:33 +02:00
parent 583fd2c780
commit 5b0f6f4b28

View file

@ -82,9 +82,9 @@ final class WP_Event_Manager extends Event_Transformer {
/**
* Get the event link as an ActivityPub Link object, but as an associative array.
*
* @return array
* @return ?array
*/
private function get_event_link_attachment(): array {
private function get_event_link_attachment(): ?array {
$event_link_url = get_post_meta( $this->wp_object->ID, '_event_video_url', true );
if ( str_starts_with( $event_link_url, 'http' ) ) {