Various tests assume civicrm_api() $entity param is nullable.
authormark burdett <mfburdett@gmail.com>
Tue, 19 Nov 2019 04:13:03 +0000 (20:13 -0800)
committermark burdett <mfburdett@gmail.com>
Tue, 19 Nov 2019 04:13:40 +0000 (20:13 -0800)
api/api.php

index 3eec1a669514d17375fff3b6801f43d200718fae..61501b6afd883d0816f8bc94cebea33f0b4ca1ff 100644 (file)
@@ -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);
 }