X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FOptionBag.php;h=dd133e535a9d5781af3376fc57f51bcef2dcfe1a;hb=075af2f09c32084fb6729648b306ba40bdf07220;hp=91c96a3a710f8aa7f15194d66e2b3862a8cca16f;hpb=dc617c20a5a57ddc6f77b6c5404f5af65dfe58dd;p=civicrm-core.git diff --git a/CRM/Utils/OptionBag.php b/CRM/Utils/OptionBag.php index 91c96a3a71..dd133e535a 100644 --- a/CRM/Utils/OptionBag.php +++ b/CRM/Utils/OptionBag.php @@ -40,7 +40,7 @@ class CRM_Utils_OptionBag implements ArrayAccess, IteratorAggregate, Countable { /** * @param array $data */ - public function __construct($data = array()) { + public function __construct($data = []) { $this->data = $data; } @@ -72,7 +72,7 @@ class CRM_Utils_OptionBag implements ArrayAccess, IteratorAggregate, Countable { return $r; } else { - throw new \API_Exception(ts("Could not find valid value for %1 (%2)", array(1 => $key, 2 => $type))); + throw new \API_Exception(ts("Could not find valid value for %1 (%2)", [1 => $key, 2 => $type])); } }