Use ?? operator instead of CRM_Utils_Array::value() in return statements
[civicrm-core.git] / CRM / Core / Controller.php
index 6f2ea70368ae7bc4bf16648291522928c4ddfd4e..8cdb5a2d5226a3047a1c39c5f8f9c688e86afc98 100644 (file)
@@ -464,7 +464,7 @@ class CRM_Core_Controller extends HTML_QuickForm_Controller {
    */
   public function getButtonName() {
     $data = &$this->container();
-    return CRM_Utils_Array::value('_qf_button_name', $data);
+    return $data['_qf_button_name'] ?? NULL;
   }
 
   /**