Skip to content

null-safe version of isMultiple check

JonGold requested to merge JonGold/form-processor:nullsafe-multiple into master

The return value of $parameterSpecificationBag->getSpecificationByName($mappedField) isn't guaranteed not to be null - e.g. if a field in the form processor only applies to certain contact subtypes. With PHP 8.0+, we could use the nullsafe operator here, but instead we'll add an extra conditional.

Merge request reports

Loading