From: Bradley Taylor Date: Sun, 11 Sep 2022 13:33:41 +0000 (+0100) Subject: More PHPdoc fixes X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=79a97f878d7e26354191a3d1b29dc977cf0c0040;p=civicrm-core.git More PHPdoc fixes --- diff --git a/CRM/Contact/BAO/ContactType.php b/CRM/Contact/BAO/ContactType.php index d9bb3e1b2f..dfafc2c0c7 100644 --- a/CRM/Contact/BAO/ContactType.php +++ b/CRM/Contact/BAO/ContactType.php @@ -658,7 +658,7 @@ WHERE contact_sub_type LIKE '%{$subType}%'"; } /** - * @param $contactType + * @param string $contactType * @param int $contactId * * @return bool @@ -695,7 +695,7 @@ WHERE contact_sub_type LIKE '%{$subType}%'"; /** * @todo what does this function do? * @param int $contactId - * @param $contactType + * @param string $contactType * * @return bool */ diff --git a/CRM/Core/Form/RecurringEntity.php b/CRM/Core/Form/RecurringEntity.php index 8db1ec2284..e9124dfd40 100644 --- a/CRM/Core/Form/RecurringEntity.php +++ b/CRM/Core/Form/RecurringEntity.php @@ -34,9 +34,9 @@ class CRM_Core_Form_RecurringEntity { /** * Schedule Reminder data - * @var array + * @var CRM_Core_DAO|null */ - protected static $_scheduleReminderDetails = []; + protected static $_scheduleReminderDetails = NULL; /** * Parent Entity ID diff --git a/CRM/Core/Key.php b/CRM/Core/Key.php index f42b16c3ac..8bce78373c 100644 --- a/CRM/Core/Key.php +++ b/CRM/Core/Key.php @@ -103,7 +103,7 @@ class CRM_Core_Key { * @param string $name * @param bool $addSequence * - * @return string + * @return string|null * if valid, else null */ public static function validate($key, $name, $addSequence = FALSE) { diff --git a/CRM/Core/OptionValue.php b/CRM/Core/OptionValue.php index 803a69bfd2..95662e6bd4 100644 --- a/CRM/Core/OptionValue.php +++ b/CRM/Core/OptionValue.php @@ -353,7 +353,7 @@ class CRM_Core_OptionValue { /** * Build select query in case of option-values * - * @param $query + * @param CRM_Contact_BAO_Query $query */ public static function select(&$query) { if (!empty($query->_params) || !empty($query->_returnProperties)) { diff --git a/CRM/Core/Payment/Form.php b/CRM/Core/Payment/Form.php index ee37b26c00..903296d0de 100644 --- a/CRM/Core/Payment/Form.php +++ b/CRM/Core/Payment/Form.php @@ -229,7 +229,7 @@ class CRM_Core_Payment_Form { * @param CRM_Core_Form $form * @param array $paymentFields * Array of properties including 'object' as loaded from CRM_Financial_BAO_PaymentProcessor::getPaymentProcessors. - * @param $paymentFields + * @return void */ protected static function addRules(&$form, $paymentFields) { foreach ($paymentFields as $paymentField => $fieldSpecs) { @@ -360,7 +360,7 @@ class CRM_Core_Payment_Form { * The date format for this field should typically be "M Y" (ex: Feb 2011) or "m Y" (02 2011) * See CRM-9017 * - * @param $src + * @param array $src * * @return int */