Skip to content

Commit

Permalink
Various tests assume civicrm_api() $entity param is nullable.
Browse files Browse the repository at this point in the history
  • Loading branch information
mfb committed Nov 19, 2019
1 parent 0b0b329 commit 8f76fa8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/api.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 8f76fa8

Please sign in to comment.