Merge pull request #22948 from pradpnayak/fixfatalerror3
authorSeamus Lee <seamuslee001@gmail.com>
Tue, 15 Mar 2022 21:24:48 +0000 (08:24 +1100)
committerGitHub <noreply@github.com>
Tue, 15 Mar 2022 21:24:48 +0000 (08:24 +1100)
Return array for setdefaults

CRM/Core/Form.php

index ae31027817d832671e07c05ec3518928bff540ce..6d59fd537f61a5baeb38737d22faecabf078c84e 100644 (file)
@@ -611,11 +611,11 @@ class CRM_Core_Form extends HTML_QuickForm_Page {
   /**
    * This virtual function is used to set the default values of various form elements.
    *
-   * @return array|NULL
+   * @return array
    *   reference to the array of default values
    */
   public function setDefaultValues() {
-    return NULL;
+    return [];
   }
 
   /**