Skip to content

Commit

Permalink
Accept integer source IDs when getting payments/subscriptions.
Browse files Browse the repository at this point in the history
  • Loading branch information
rvdsteege committed Jul 17, 2024
1 parent 5d9bed0 commit 268e7c6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ function get_pronamic_payments_by_user_id( $user_id = null ) {
/**
* Get payments by the specified source and source ID.
*
* @param string $source The source to query for.
* @param string|null $source_id The source ID to query for.
* @param string $source The source to query for.
* @param string|int|null $source_id The source ID to query for.
* @return Payment[]
*/
function get_pronamic_payments_by_source( $source, $source_id = null ) {
Expand Down Expand Up @@ -280,8 +280,8 @@ function get_pronamic_subscriptions_by_user_id( $user_id = null ) {
/**
* Get subscriptions by the specified source and source ID.
*
* @param string $source The source to query for.
* @param string|null $source_id The source ID to query for.
* @param string $source The source to query for.
* @param string|int|null $source_id The source ID to query for.
* @return Subscription[]
*/
function get_pronamic_subscriptions_by_source( $source, $source_id = null ) {
Expand Down

0 comments on commit 268e7c6

Please sign in to comment.