From d5670e2e10eb383de0d8b5ccc1415e624dc0a853 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Sat, 23 Sep 2023 23:44:15 +1200 Subject: [PATCH] Add deprecated notice to unreachable code Per code comment & my own reading of the code today this else clause seems unreachable priceSetID is set for quickConfig AND normal prices sets... --- CRM/Event/Form/Registration/Register.php | 1 + 1 file changed, 1 insertion(+) diff --git a/CRM/Event/Form/Registration/Register.php b/CRM/Event/Form/Registration/Register.php index 1a3e3adc14..5264992729 100644 --- a/CRM/Event/Form/Registration/Register.php +++ b/CRM/Event/Form/Registration/Register.php @@ -658,6 +658,7 @@ class CRM_Event_Form_Registration_Register extends CRM_Event_Form_Registration { } else { // Is this reachable? + CRM_Core_Error::deprecatedWarning('code believed to be unreachable'); $eventFeeBlockValues = $elements = $elementJS = []; foreach ($form->_feeBlock as $fee) { if (is_array($fee)) { -- 2.25.1