From: Bradley Taylor Date: Wed, 31 Aug 2022 11:01:12 +0000 (+0100) Subject: Add missing PHPDoc types X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=c7441418e0e6cd4d0cf88fde431f4126042540d4;p=civicrm-core.git Add missing PHPDoc types --- diff --git a/CRM/Activity/BAO/Activity.php b/CRM/Activity/BAO/Activity.php index 35f779e726..215ac3072f 100644 --- a/CRM/Activity/BAO/Activity.php +++ b/CRM/Activity/BAO/Activity.php @@ -974,8 +974,8 @@ class CRM_Activity_BAO_Activity extends CRM_Activity_DAO_Activity { * The array of contact details to send the email. * @param string $subject * The subject of the message. - * @param $text - * @param $html + * @param string|null $text + * @param string|null $html * @param string $emailAddress * Use this 'to' email address instead of the default Primary address. * @param int|null $userID @@ -1277,7 +1277,7 @@ WHERE entity_id =%1 AND entity_table = %2"; * * @param int $toID * The contact id of the recipient. - * @param $tokenText + * @param string $tokenText * @param array $smsProviderParams * The params used for sending sms. * @param int $activityID @@ -1348,8 +1348,8 @@ WHERE entity_id =%1 AND entity_table = %2"; * The contact id of the recipient. * @param string $subject * The subject of the message. - * @param $text_message - * @param $html_message + * @param string|null $text_message + * @param string|null $html_message * @param string $emailAddress * Use this 'to' email address instead of the default Primary address. * @param int $activityID @@ -1723,7 +1723,7 @@ WHERE activity.id IN ($activityIds)"; /** * Get all prior activities of currently viewed activity. * - * @param $activityID + * @param int $activityID * Current activity id. * @param bool $onlyPriorRevisions * diff --git a/CRM/Activity/BAO/Query.php b/CRM/Activity/BAO/Query.php index 95bea4d167..d147c9fc6f 100644 --- a/CRM/Activity/BAO/Query.php +++ b/CRM/Activity/BAO/Query.php @@ -344,8 +344,8 @@ class CRM_Activity_BAO_Query { /** * @param string $name - * @param $mode - * @param $side + * @param int $mode + * @param string $side * * @return null|string */ diff --git a/CRM/Contribute/BAO/Query.php b/CRM/Contribute/BAO/Query.php index 643d5dcb19..5654fabb02 100644 --- a/CRM/Contribute/BAO/Query.php +++ b/CRM/Contribute/BAO/Query.php @@ -493,7 +493,7 @@ class CRM_Contribute_BAO_Query extends CRM_Core_BAO_Query { * Get from clause. * * @param string $name - * @param string $mode + * @param int $mode * @param string $side * * @return NULL|string diff --git a/CRM/Logging/Differ.php b/CRM/Logging/Differ.php index 643ed05df1..bca2d05462 100644 --- a/CRM/Logging/Differ.php +++ b/CRM/Logging/Differ.php @@ -53,7 +53,7 @@ class CRM_Logging_Differ { } /** - * @param $table + * @param string $table * @param int $contactID * * @return array diff --git a/CRM/Mailing/BAO/Query.php b/CRM/Mailing/BAO/Query.php index 983c4654ed..ced2040d76 100644 --- a/CRM/Mailing/BAO/Query.php +++ b/CRM/Mailing/BAO/Query.php @@ -149,8 +149,8 @@ class CRM_Mailing_BAO_Query { /** * @param string $name - * @param $mode - * @param $side + * @param int $mode + * @param string $side * * @return null|string */ diff --git a/CRM/Mailing/Event/BAO/Opened.php b/CRM/Mailing/Event/BAO/Opened.php index 81a57a16a0..4242251291 100644 --- a/CRM/Mailing/Event/BAO/Opened.php +++ b/CRM/Mailing/Event/BAO/Opened.php @@ -108,7 +108,7 @@ class CRM_Mailing_Event_BAO_Opened extends CRM_Mailing_Event_DAO_Opened { * @see https://issues.civicrm.org/jira/browse/CRM-12814 * Get opened count for each mailing for a given set of mailing IDs * - * @param $mailingIDs + * @param int[] $mailingIDs * * @return array * Opened count per mailing ID diff --git a/CRM/Report/Form/Contribute/Sybunt.php b/CRM/Report/Form/Contribute/Sybunt.php index 6c83f63113..8f25969dab 100644 --- a/CRM/Report/Form/Contribute/Sybunt.php +++ b/CRM/Report/Form/Contribute/Sybunt.php @@ -503,7 +503,7 @@ class CRM_Report_Form_Contribute_Sybunt extends CRM_Report_Form { } /** - * @param $rows + * @param array $rows */ public function buildChart(&$rows) { $graphRows = []; diff --git a/ext/civigrant/CRM/Grant/BAO/Query.php b/ext/civigrant/CRM/Grant/BAO/Query.php index 5247bac153..503f01e9bd 100644 --- a/ext/civigrant/CRM/Grant/BAO/Query.php +++ b/ext/civigrant/CRM/Grant/BAO/Query.php @@ -227,8 +227,8 @@ class CRM_Grant_BAO_Query extends CRM_Contact_BAO_Query_Interface { /** * @param string $name - * @param $mode - * @param $side + * @param int $mode + * @param string $side * * @return null|string */