X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FOptionBag.php;h=10000dbb6705688b1e500128e8164e54cafee874;hb=03f5e517b171ea0c7f04bf05d018a149ca34dac8;hp=91c96a3a710f8aa7f15194d66e2b3862a8cca16f;hpb=fe1f07566a533c23e40b453bf6eb8972d46c6e5a;p=civicrm-core.git diff --git a/CRM/Utils/OptionBag.php b/CRM/Utils/OptionBag.php index 91c96a3a71..10000dbb67 100644 --- a/CRM/Utils/OptionBag.php +++ b/CRM/Utils/OptionBag.php @@ -1,34 +1,18 @@ data = $data; } @@ -72,7 +56,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])); } }