From 8f76fa8b706631134c1d2e2e7300673f61a6c01e Mon Sep 17 00:00:00 2001 From: mark burdett Date: Mon, 18 Nov 2019 20:13:03 -0800 Subject: [PATCH] Various tests assume civicrm_api() $entity param is nullable. --- api/api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/api.php b/api/api.php index 3eec1a6695..61501b6afd 100644 --- a/api/api.php +++ b/api/api.php @@ -19,7 +19,7 @@ * * @return array|int */ -function civicrm_api(string $entity, string $action, array $params, $extra = NULL) { +function civicrm_api(string $entity = NULL, string $action, array $params, $extra = NULL) { return \Civi::service('civi_api_kernel')->runSafe($entity, $action, $params, $extra); } -- 2.25.1