X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=tests%2Ftemplates%2FdocumentFunction.tpl;h=199226399f33591272972755db2d6ed2a3d8d1b1;hb=5c5cee83e78fad8ca1a810a9f9269d73432fc1e9;hp=15af3c351d817a569b98313e39f24d11d011ba77;hpb=d25d2baa92f637b06c6fdc0747056a33a3d8d5ee;p=civicrm-core.git diff --git a/tests/templates/documentFunction.tpl b/tests/templates/documentFunction.tpl index 15af3c351d..199226399f 100644 --- a/tests/templates/documentFunction.tpl +++ b/tests/templates/documentFunction.tpl @@ -29,12 +29,12 @@ function {$function}_example() {literal}{{/literal} $errorMessage = $e->getMessage(); $errorCode = $e->getErrorCode(); $errorData = $e->getExtraParams(); - return array( + return [ 'is_error' => 1, 'error_message' => $errorMessage, 'error_code' => $errorCode, 'error_data' => $errorData, - ); + ]; }{/literal} return $result;