Merge pull request #15295 from colemanw/jsEncode2
[civicrm-core.git] / Civi / Codeception / CiviAcceptanceTesterTrait.php
index 47b2c1417eeb6ba7c1574ce5746e00c61c298c3f..b5a4dea57a328f421f5db61052a2cf81358829e7 100644 (file)
@@ -33,7 +33,7 @@ trait CiviAcceptanceTesterTrait {
    */
   public function login($username, $password) {
     $config = \CRM_Core_Config::singleton();
-    $handler = array($this, 'loginTo' . $config->userFramework);
+    $handler = [$this, 'loginTo' . $config->userFramework];
     if (is_callable($handler)) {
       call_user_func($handler, $username, $password);
     }