Catch things that should be NULL

This commit is contained in:
James Cole
2023-01-11 17:38:17 +01:00
parent 3f2560c8e5
commit 6e3381844e

View File

@@ -242,6 +242,12 @@ class TransactionGroupTransformer extends AbstractTransformer
if (null === $array[$key] && null === $default) {
return null;
}
if(0 === $array[$key]) {
return null;
}
if('0' === $array[$key]) {
return null;
}
if (null !== $array[$key]) {
return (string)$array[$key];
}