fix return type
Some checks failed
Some checks failed
This commit is contained in:
parent
583fd2c780
commit
5b0f6f4b28
1 changed files with 2 additions and 2 deletions
|
@ -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.
|
* 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 );
|
$event_link_url = get_post_meta( $this->wp_object->ID, '_event_video_url', true );
|
||||||
|
|
||||||
if ( str_starts_with( $event_link_url, 'http' ) ) {
|
if ( str_starts_with( $event_link_url, 'http' ) ) {
|
||||||
|
|
Loading…
Reference in a new issue