(REF) hook_civicrm_alterMailParams.evch.php - Soften 'type' check
authorTim Otten <totten@civicrm.org>
Tue, 28 Sep 2021 21:55:44 +0000 (14:55 -0700)
committerTim Otten <totten@civicrm.org>
Tue, 28 Sep 2021 22:26:53 +0000 (15:26 -0700)
commit3d1f6d1c0e5e8b30695d9b64df341f8bf0144ce1
tree05a5ef107c440649ee9635f1067642160ee569eb
parent6a7b185861f6d5aaf4a05f14c0afe9e1a28d9327
(REF) hook_civicrm_alterMailParams.evch.php - Soften 'type' check

This changes some of the plumbing in how it interprets 'paramSpecs' - but
doesn't change anything substantive.

Before: You must specify a 'type' constraint for every param.
After: You may omit the 'type' constraint for some params.

Before: If you specify a nullable string with a regex, then null-values will fail.
After: If you specify a nullable string with a regex, then null-values will pass.
tests/events/hook_civicrm_alterMailParams.evch.php