Skip to content

Commit

Permalink
Add explicit return of null.
Browse files Browse the repository at this point in the history
Apparently, the implicit return of null breaks the typehint?
  • Loading branch information
adam-vessey committed Apr 18, 2024
1 parent 3c3f984 commit 6aaa639
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions embargo.module
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ function embargo_file_download($uri) : null|array|int {
return -1;
}
}

return NULL;
}

/**
Expand Down

0 comments on commit 6aaa639

Please sign in to comment.