From 268e7c6b736397b76f05e1f9281885c717b34a92 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Re=C3=BCel=20van=20der=20Steege?= Date: Wed, 17 Jul 2024 14:13:42 +0200 Subject: [PATCH] Accept integer source IDs when getting payments/subscriptions. --- includes/functions.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/functions.php b/includes/functions.php index 84aab340..93dd3832 100644 --- a/includes/functions.php +++ b/includes/functions.php @@ -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 ) { @@ -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 ) {