Skip to content

Commit

Permalink
Merge pull request #10 from alleyinteractive/fix/return-type
Browse files Browse the repository at this point in the history
Fix return type of create_or_get_attachment_from_url
  • Loading branch information
kevinfodness authored Nov 7, 2023
2 parents 7c1f569 + 7bdd7fd commit 95b5df0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
*
* @return int Attachment ID.
*/
function create_or_get_attachment_from_url( string $src, array $args = [], string $meta_key = 'original_url' ): int|WP_Error {
function create_or_get_attachment_from_url( string $src, array $args = [], string $meta_key = 'original_url' ): int {
$attachment_ids = get_posts( // phpcs:ignore WordPressVIPMinimum.Functions.RestrictedFunctions.get_posts_get_posts
[
'fields' => 'ids',
Expand Down

0 comments on commit 95b5df0

Please sign in to comment.