PHP Fatal error: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in /home/jon/local/mysite/web/wp-content/civicrm-custom/extensions/org.civicrm.contactlayout/CRM/Contactlayout/BAO/ContactLayout.php:200"
That's because we were setting $blockContentType to NULL instead of an empty array, but then using it in places that required an array. I've fixed that and tightened up the type hint.
https://github.com/civicrm/org.civicrm.contactlayout/pull/124 added support for multiple contact types for each block or tab. But I was seeing this error:
That's because we were setting
$blockContentType
toNULL
instead of an empty array, but then using it in places that required an array. I've fixed that and tightened up the type hint.