X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FOptionBag.php;h=10000dbb6705688b1e500128e8164e54cafee874;hb=d1dd266b7e980fa46243f5a8644317cb7c892e2c;hp=91c96a3a710f8aa7f15194d66e2b3862a8cca16f;hpb=a7e974f985f73948c0a4b6cfeefb66798ba91c0a;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])); } }