From: Eileen McNaughton Date: Fri, 5 Aug 2022 04:02:06 +0000 (+1200) Subject: Add typing to child classed X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=304a78b7ec095eb860ad3143775a37da05c275fb;p=civicrm-core.git Add typing to child classed --- diff --git a/CRM/Profile/Form/Dynamic.php b/CRM/Profile/Form/Dynamic.php index 91c98e3f26..2d5c2b5c5f 100644 --- a/CRM/Profile/Form/Dynamic.php +++ b/CRM/Profile/Form/Dynamic.php @@ -31,7 +31,7 @@ class CRM_Profile_Form_Dynamic extends CRM_Profile_Form { * @param * */ - public function preProcess() { + public function preProcess(): void { if ($this->get('register')) { $this->_mode = CRM_Profile_Form::MODE_REGISTER; } @@ -53,7 +53,7 @@ class CRM_Profile_Form_Dynamic extends CRM_Profile_Form { * Build the form object. * */ - public function buildQuickForm() { + public function buildQuickForm(): void { $this->addButtons([ [ 'type' => 'upload', @@ -93,11 +93,4 @@ class CRM_Profile_Form_Dynamic extends CRM_Profile_Form { return CRM_Profile_Form::formRule($fields, $files, $form); } - /** - * Process the user submitted custom data values. - */ - public function postProcess() { - parent::postProcess(); - } - } diff --git a/CRM/Profile/Form/Edit.php b/CRM/Profile/Form/Edit.php index 5f1d668b2d..02b623bb27 100644 --- a/CRM/Profile/Form/Edit.php +++ b/CRM/Profile/Form/Edit.php @@ -134,7 +134,7 @@ SELECT module,is_reserved * Build the form object. * */ - public function buildQuickForm() { + public function buildQuickForm(): void { if (empty($this->_ufGroup['id'])) { CRM_Core_Error::statusBounce(ts('Invalid')); } diff --git a/CRM/Profile/Form/Search.php b/CRM/Profile/Form/Search.php index c86032a703..71d9a6cc51 100644 --- a/CRM/Profile/Form/Search.php +++ b/CRM/Profile/Form/Search.php @@ -27,7 +27,7 @@ class CRM_Profile_Form_Search extends CRM_Profile_Form { /** * Pre processing work done here. */ - public function preProcess() { + public function preProcess(): void { $this->_mode = CRM_Profile_Form::MODE_SEARCH; parent::preProcess(); } @@ -78,7 +78,7 @@ class CRM_Profile_Form_Search extends CRM_Profile_Form { /** * Build the form object. */ - public function buildQuickForm() { + public function buildQuickForm(): void { // Is proximity search enabled for this profile? $proxSearch = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_UFGroup', $this->get('gid'), @@ -102,7 +102,7 @@ class CRM_Profile_Form_Search extends CRM_Profile_Form { /** * Post process function. */ - public function postProcess() { + public function postProcess(): void { } }