Skip to content

Commit

Permalink
Add type cast
Browse files Browse the repository at this point in the history
  • Loading branch information
MlKilderkin committed Mar 11, 2024
1 parent ff427b9 commit 013492e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .deploy/ucsc-news-migration/src/Import/Processors/Post.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ protected function inject_co_authors( array $author, int $post_id ) {
return;
}

$this->assign_co_author( $post_id, $author['name'] ?? '', $author['email'] ?? '' );
$this->assign_co_author( $post_id, (string) $author['name'] ?? '', (string) $author['email'] ?? '' );
}

protected function inject_image_block( int $post_id, int $image_id, string $meta_key, array $meta = [], bool $has_secondary_image = false ): string {
Expand Down

0 comments on commit 013492e

Please sign in to comment.